about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
authorMarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com>2022-08-20 22:48:02 +0300
committerMarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com>2022-08-20 22:48:02 +0300
commita704838152b9aec0bef2446f742b1eb548f71d1a (patch)
treeaed0eba30c8f27cb4f310b66752cd2fee30ba776 /src/event
parent4b9ff6d4dcf2e1c16f12f9039d57530245ce1c4d (diff)
downloadprofani-tty-a704838152b9aec0bef2446f742b1eb548f71d1a.tar.gz
Handle late delivery
Diffstat (limited to 'src/event')
-rw-r--r--src/event/server_events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c
index 26c4963e..8c1ee04f 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -640,8 +640,8 @@ sv_ev_incoming_message(ProfMessage* message)
         new_win = TRUE;
 
         if (prefs_get_boolean(PREF_MAM)) {
-            iq_mam_request(chatwin);
             win_print_loading_history(window);
+            iq_mam_request(chatwin, g_date_time_add_seconds(message->timestamp, 0)); // copy timestamp
         }
 
 #ifdef HAVE_OMEMO