From c0861eed495e52c5db0b7595b83f2bd4e0585222 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Sun, 21 May 2023 11:00:32 +0200 Subject: [PATCH] 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 --- src/xmpp/iq.c | 6 ++++-- 1 file 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);