mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 16:06:22 +00:00
Log incoming carbons if they are no MUCPM
Regards https://github.com/profanity-im/profanity/pull/1446
This commit is contained in:
@@ -659,14 +659,19 @@ sv_ev_incoming_carbon(ProfMessage* message)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gboolean logit = TRUE;
|
||||||
|
if (message->type == PROF_MSG_TYPE_MUCPM) {
|
||||||
|
logit = FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if (message->enc == PROF_MSG_ENC_OX) {
|
if (message->enc == PROF_MSG_ENC_OX) {
|
||||||
_sv_ev_incoming_ox(chatwin, new_win, message, FALSE);
|
_sv_ev_incoming_ox(chatwin, new_win, message, logit);
|
||||||
} else if (message->encrypted) {
|
} else if (message->encrypted) {
|
||||||
_sv_ev_incoming_pgp(chatwin, new_win, message, FALSE);
|
_sv_ev_incoming_pgp(chatwin, new_win, message, logit);
|
||||||
} else if (message->enc == PROF_MSG_ENC_OMEMO) {
|
} else if (message->enc == PROF_MSG_ENC_OMEMO) {
|
||||||
_sv_ev_incoming_omemo(chatwin, new_win, message, FALSE);
|
_sv_ev_incoming_omemo(chatwin, new_win, message, logit);
|
||||||
} else {
|
} else {
|
||||||
_sv_ev_incoming_plain(chatwin, new_win, message, FALSE);
|
_sv_ev_incoming_plain(chatwin, new_win, message, logit);
|
||||||
}
|
}
|
||||||
rosterwin_roster();
|
rosterwin_roster();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user