diff options
author | MarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com> | 2022-07-05 13:09:16 +0300 |
---|---|---|
committer | MarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com> | 2022-07-10 11:17:35 +0300 |
commit | 47b3e528e2c13a63316fa7ad2c02d9b702741dea (patch) | |
tree | 5de884d97e4d54412c81004e5455e228d118fee8 /src/xmpp | |
parent | b03c3bda980056f65cd696fd65883a1c351ac8d7 (diff) | |
download | profani-tty-47b3e528e2c13a63316fa7ad2c02d9b702741dea.tar.gz |
Handle scrolling down when buffer fills up
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/iq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index e5d6b13a..a1784b45 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -2583,7 +2583,7 @@ _mam_buffer_commit_handler(xmpp_stanza_t* const stanza, void* const userdata) ProfChatWin* chatwin = (ProfChatWin*)userdata; // Remove the "Loading messages ..." message buffer_remove_entry(((ProfWin*)chatwin)->layout->buffer, 0); - chatwin_old_history(chatwin, NULL); + chatwin_db_history(chatwin, NULL, NULL, TRUE); return 0; } @@ -2685,10 +2685,10 @@ _mam_rsm_id_handler(xmpp_stanza_t* const stanza, void* const userdata) buffer_remove_entry(window->layout->buffer, 0); if (is_complete || data->end_datestr) { - chatwin_old_history(data->win, is_complete ? NULL : data->start_datestr); + chatwin_db_history(data->win, is_complete ? NULL : data->start_datestr, NULL, TRUE); return 0; } - chatwin_old_history(data->win, data->start_datestr); + chatwin_db_history(data->win, data->start_datestr, NULL, TRUE); xmpp_stanza_t* set = xmpp_stanza_get_child_by_name_and_ns(fin, STANZA_TYPE_SET, STANZA_NS_RSM); if (set) { |