about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorSteffen Jaeckel <jaeckel-floss@eyet-services.de>2023-05-21 11:00:32 +0200
committerSteffen Jaeckel <jaeckel-floss@eyet-services.de>2023-05-21 11:00:32 +0200
commitc0861eed495e52c5db0b7595b83f2bd4e0585222 (patch)
tree22f2b07b656268f6786604141c8f64c9a2f4f936 /src/xmpp
parent638b15c6d9d525418638b469b0045230385e59bf (diff)
downloadprofani-tty-c0861eed495e52c5db0b7595b83f2bd4e0585222.tar.gz
Improve debug logging
Tell the user that a MAM request will be issued delayed instead of showing
a warning that MAM isn't supported by the server.

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/iq.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index 41a2e89d..a9285425 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -2728,9 +2728,11 @@ iq_mam_request(ProfChatWin* win, GDateTime* enddate)
     if (!received_disco_items) {
         LateDeliveryUserdata* cur_del_data = malloc(sizeof(LateDeliveryUserdata));
         cur_del_data->win = win;
-        cur_del_data->enddate = g_date_time_ref(enddate);
-        cur_del_data->startdate = g_date_time_ref(startdate);
+        cur_del_data->enddate = enddate;
+        cur_del_data->startdate = startdate;
         late_delivery_windows = g_slist_append(late_delivery_windows, cur_del_data);
+        log_debug("Save MAM request of %s for later", win->barejid);
+        return;
     }
 
     _iq_mam_request(win, startdate, enddate);