From e9da69426527c242c72f88e74f82724c0ea20c39 Mon Sep 17 00:00:00 2001 From: MarcoPolo-PasTonMolo Date: Mon, 4 Jul 2022 12:39:59 +0300 Subject: Add 'Loading messages' message when scrolling up --- src/xmpp/iq.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/xmpp') 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; } -- cgit 1.4.1-2-gfad0