mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Get MAM from last 7 days
Probably should make this configurable later.
This commit is contained in:
parent
d3303517f7
commit
840238b126
@ -2558,7 +2558,7 @@ iq_mam_request(ProfChatWin* win)
|
|||||||
xmpp_ctx_t* const ctx = connection_get_ctx();
|
xmpp_ctx_t* const ctx = connection_get_ctx();
|
||||||
|
|
||||||
GDateTime* now = g_date_time_new_now_utc();
|
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);
|
g_date_time_unref(now);
|
||||||
gchar* datestr = g_date_time_format(timestamp, "%FT%TZ");
|
gchar* datestr = g_date_time_format(timestamp, "%FT%TZ");
|
||||||
xmpp_stanza_t* iq = stanza_create_mam_iq(ctx, win->barejid, datestr, NULL);
|
xmpp_stanza_t* iq = stanza_create_mam_iq(ctx, win->barejid, datestr, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user