about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-01-28 14:42:13 +0100
committerMichael Vetter <jubalh@iodoru.org>2021-01-28 14:44:53 +0100
commit840238b12671ae77ecfc8911879595816829486b (patch)
tree62eaf6febfa8cf422b7417dcc7eb501393f4333e
parentd3303517f7bf3cea504f360518db6ea223036fac (diff)
downloadprofani-tty-840238b12671ae77ecfc8911879595816829486b.tar.gz
Get MAM from last 7 days
Probably should make this configurable later.
-rw-r--r--src/xmpp/iq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index cc58db58..ed1af567 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -2558,7 +2558,7 @@ iq_mam_request(ProfChatWin* win)
     xmpp_ctx_t* const ctx = connection_get_ctx();
 
     GDateTime* now = g_date_time_new_now_utc();
-    GDateTime* timestamp = g_date_time_add_days(now, -1);
+    GDateTime* timestamp = g_date_time_add_days(now, -7);
     g_date_time_unref(now);
     gchar* datestr = g_date_time_format(timestamp, "%FT%TZ");
     xmpp_stanza_t* iq = stanza_create_mam_iq(ctx, win->barejid, datestr, NULL);