mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
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 8ee2cdadc8
This commit is contained in:
parent
669de0ca52
commit
eb2fbdba2e
@ -324,7 +324,7 @@ sv_ev_room_message(ProfMessage *message)
|
||||
GList *triggers = prefs_message_get_triggers(message->plain);
|
||||
|
||||
_clean_incoming_message(message);
|
||||
mucwin_incoming_msg(mucwin, message, mentions, triggers);
|
||||
mucwin_incoming_msg(mucwin, message, mentions, triggers, TRUE);
|
||||
|
||||
g_slist_free(mentions);
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -159,7 +159,7 @@ void mucwin_occupant_role_and_affiliation_change(ProfMucWin *mucwin, const char
|
||||
void mucwin_roster(ProfMucWin *mucwin, GList *occupants, const char *const presence);
|
||||
void mucwin_history(ProfMucWin *mucwin, const ProfMessage *const message);
|
||||
void mucwin_outgoing_msg(ProfMucWin *mucwin, const char *const message, const char *const id, prof_enc_t enc_mode, const char *const replace_id);
|
||||
void mucwin_incoming_msg(ProfMucWin *mucwin, const ProfMessage *const message, GSList *mentions, GList *triggers);
|
||||
void mucwin_incoming_msg(ProfMucWin *mucwin, const ProfMessage *const message, GSList *mentions, GList *triggers, gboolean filter_reflection);
|
||||
void mucwin_subject(ProfMucWin *mucwin, const char *const nick, const char *const subject);
|
||||
void mucwin_requires_config(ProfMucWin *mucwin);
|
||||
void mucwin_info(ProfMucWin *mucwin);
|
||||
|
Loading…
Reference in New Issue
Block a user