about summary refs log tree commit diff stats
path: root/src/ui/window_list.h
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-06-05 09:33:10 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-06-05 09:49:50 +0200
commit13675fbf06a0d0fbae2b974596a0fb513ba22340 (patch)
tree9194b150f3db163e5086d747a06f2f0f09cd72a7 /src/ui/window_list.h
parent06f5e94dd7792bba568af69822d57f8e699277b1 (diff)
downloadprofani-tty-13675fbf06a0d0fbae2b974596a0fb513ba22340.tar.gz
Only print room history for new messages upon reconnect
If re-establish a connection don't print the room history again.
In case there there happened nothing at all since we got the room
history on the last connection.
And in case there were no new messages during the time we have been
disconnected.

Instead of printing the room history again we now print 'Re-established
Connection'.

This adds a bit of overhead since we save the timestamp upon every MUC
message.

See: https://github.com/profanity-im/profanity/issues/704
Diffstat (limited to 'src/ui/window_list.h')
-rw-r--r--src/ui/window_list.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/window_list.h b/src/ui/window_list.h
index 6045d349..c79e9dd7 100644
--- a/src/ui/window_list.h
+++ b/src/ui/window_list.h
@@ -83,6 +83,7 @@ void wins_resize_all(void);
 GSList* wins_get_chat_recipients(void);
 GSList* wins_get_prune_wins(void);
 void wins_lost_connection(void);
+void wins_reestablished_connection(void);
 gboolean wins_tidy(void);
 GSList* wins_create_summary(gboolean unread);
 void wins_destroy(void);