diff options
author | MarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com> | 2022-07-10 12:28:14 +0300 |
---|---|---|
committer | MarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com> | 2022-07-10 12:28:14 +0300 |
commit | 72f613a014080c4b4988d749ee5f682aed253546 (patch) | |
tree | 820aeac531c5cf7519fb614eef6f0b4ce1470a0b /src/event | |
parent | a2f79a19b9b2720b7f14462a994d4cd54bbd079e (diff) | |
download | profani-tty-72f613a014080c4b4988d749ee5f682aed253546.tar.gz |
Handle MAM when chatwin gets created from incoming message
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/server_events.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c index 0f18c4e9..26c4963e 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -54,6 +54,7 @@ #include "event/common.h" #include "plugins/plugins.h" #include "ui/window_list.h" +#include "ui/window.h" #include "tools/bookmark_ignore.h" #include "xmpp/xmpp.h" #include "xmpp/muc.h" @@ -638,6 +639,11 @@ sv_ev_incoming_message(ProfMessage* message) chatwin = (ProfChatWin*)window; new_win = TRUE; + if (prefs_get_boolean(PREF_MAM)) { + iq_mam_request(chatwin); + win_print_loading_history(window); + } + #ifdef HAVE_OMEMO if (!message->is_mam) { if (omemo_automatic_start(message->from_jid->barejid)) { |