Add 'Loading messages' message when scrolling up

This commit is contained in:
MarcoPolo-PasTonMolo
2022-07-04 12:39:59 +03:00
parent 97a610e915
commit e9da694265
4 changed files with 24 additions and 5 deletions

View File

@@ -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;
}