mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 11:16:22 +00:00
Close windows on connection loss not general disc.
Call `ui_close_all_wins();` only if we disconnect on purpose not when
connection is lost.
Otherwise users might miss messages.
This partly reverts 6ac73db876.
Regards https://github.com/profanity-im/profanity/issues/1083
This commit is contained in:
@@ -86,6 +86,7 @@ cl_ev_disconnect(void)
|
|||||||
cons_show("%s logged out successfully.", jidp->barejid);
|
cons_show("%s logged out successfully.", jidp->barejid);
|
||||||
jid_destroy(jidp);
|
jid_destroy(jidp);
|
||||||
|
|
||||||
|
ui_close_all_wins();
|
||||||
ev_disconnect_cleanup();
|
ev_disconnect_cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ void
|
|||||||
ev_disconnect_cleanup(void)
|
ev_disconnect_cleanup(void)
|
||||||
{
|
{
|
||||||
ui_disconnected();
|
ui_disconnected();
|
||||||
ui_close_all_wins();
|
|
||||||
session_disconnect();
|
session_disconnect();
|
||||||
roster_destroy();
|
roster_destroy();
|
||||||
muc_invites_clear();
|
muc_invites_clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user