diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-05-27 12:52:04 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-05-27 12:52:04 +0200 |
commit | bfa4a2ef1fdee2ae6ae017e8a97ac968509c3ca5 (patch) | |
tree | c442994b90422b7a4845dad7c1ef33a03e0b4f05 | |
parent | eb16c674ae544d2e4dca61eb676e7c8f4c267b2f (diff) | |
download | profani-tty-bfa4a2ef1fdee2ae6ae017e8a97ac968509c3ca5.tar.gz |
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 6ac73db876c83c7068c4795b19c09ea59eb18a40. Regards https://github.com/profanity-im/profanity/issues/1083
-rw-r--r-- | src/event/client_events.c | 1 | ||||
-rw-r--r-- | src/event/common.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/event/client_events.c b/src/event/client_events.c index a2784d1a..1e286ce0 100644 --- a/src/event/client_events.c +++ b/src/event/client_events.c @@ -86,6 +86,7 @@ cl_ev_disconnect(void) cons_show("%s logged out successfully.", jidp->barejid); jid_destroy(jidp); + ui_close_all_wins(); ev_disconnect_cleanup(); } diff --git a/src/event/common.c b/src/event/common.c index aa8db832..062e680b 100644 --- a/src/event/common.c +++ b/src/event/common.c @@ -51,7 +51,6 @@ void ev_disconnect_cleanup(void) { ui_disconnected(); - ui_close_all_wins(); session_disconnect(); roster_destroy(); muc_invites_clear(); |