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/ui | |
parent | a2f79a19b9b2720b7f14462a994d4cd54bbd079e (diff) | |
download | profani-tty-72f613a014080c4b4988d749ee5f682aed253546.tar.gz |
Handle MAM when chatwin gets created from incoming message
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/chatwin.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/chatwin.c b/src/ui/chatwin.c index 530739ae..7d583b43 100644 --- a/src/ui/chatwin.c +++ b/src/ui/chatwin.c @@ -320,7 +320,10 @@ chatwin_incoming_msg(ProfChatWin* chatwin, ProfMessage* message, gboolean win_cr } win_insert_last_read_position_marker((ProfWin*)chatwin, chatwin->barejid); - win_print_incoming(window, display_name, message); + + if (!win_created || !prefs_get_boolean(PREF_MAM)) { + win_print_incoming(window, display_name, message); + } } wins_add_urls_ac(window, message); |