about summary refs log tree commit diff stats
path: root/src/ui/mucwin.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-02-21 18:46:09 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-02-21 18:46:09 +0100
commiteb2fbdba2efb9c81275461bf3651215b9456e496 (patch)
tree22a07bf671dda3c53ef473fd7107bf99f5a12665 /src/ui/mucwin.c
parent669de0ca521b8aada5be6cfa52fe5f4416ca84a1 (diff)
downloadprofani-tty-eb2fbdba2efb9c81275461bf3651215b9456e496.tar.gz
Dont filter out own MUC messages if muc history is set to 'regular'
We use the same incoming function as for regular incoming text here. But
don't want to filter out our own messages since we didn't print them
during sending.

Follow up to 8ee2cdadc88978ea26e6b6eb56f2aaa1fd5a81df
Diffstat (limited to 'src/ui/mucwin.c')
-rw-r--r--src/ui/mucwin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c
index ce542b5f..8f9941d3 100644
--- a/src/ui/mucwin.c
+++ b/src/ui/mucwin.c
@@ -394,7 +394,7 @@ mucwin_history(ProfMucWin *mucwin, const ProfMessage *const message)
         GSList *mentions = get_mentions(prefs_get_boolean(PREF_NOTIFY_MENTION_WHOLE_WORD), prefs_get_boolean(PREF_NOTIFY_MENTION_CASE_SENSITIVE), message->plain, mynick);
         GList *triggers = prefs_message_get_triggers(message->plain);
 
-        mucwin_incoming_msg(mucwin, message, mentions, triggers);
+        mucwin_incoming_msg(mucwin, message, mentions, triggers, FALSE);
 
         g_slist_free(mentions);
         g_list_free_full(triggers, free);
@@ -552,12 +552,12 @@ mucwin_outgoing_msg(ProfMucWin *mucwin, const char *const message, const char *c
 }
 
 void
-mucwin_incoming_msg(ProfMucWin *mucwin, const ProfMessage *const message, GSList *mentions, GList *triggers)
+mucwin_incoming_msg(ProfMucWin *mucwin, const ProfMessage *const message, GSList *mentions, GList *triggers, gboolean filter_reflection)
 {
     assert(mucwin != NULL);
     int flags = 0;
 
-    if (message_is_sent_by_us(message, TRUE)) {
+    if (filter_reflection && message_is_sent_by_us(message, TRUE)) {
         /* Ignore reflection messages */
         return;
     }