about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorMarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com>2022-07-04 12:39:59 +0300
committerMarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com>2022-07-04 12:39:59 +0300
commite9da69426527c242c72f88e74f82724c0ea20c39 (patch)
tree00bdd8b0827400113f5dcf443011b66a988df30f /src/xmpp
parent97a610e915d178ff136d3c93bdb3c7c6f97666ff (diff)
downloadprofani-tty-e9da69426527c242c72f88e74f82724c0ea20c39.tar.gz
Add 'Loading messages' message when scrolling up
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/iq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index d51560be..d2ae7de2 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -2580,6 +2580,8 @@ _mam_buffer_commit_handler(xmpp_stanza_t* const stanza, void* const userdata)
 {
     ProfChatWin* chatwin = (ProfChatWin*)userdata;
     cons_show("Comitted history");
+    // Remove the "Loading messages ..." message
+    buffer_remove_entry(((ProfWin*)chatwin)->layout->buffer, 0);
     chatwin_old_history(chatwin);
     return 0;
 }