1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Fix which message we want to log

This commit is contained in:
Michael Vetter 2019-10-19 23:24:33 +02:00
parent 2a4d1b8410
commit 31014b5e51

View File

@ -304,11 +304,9 @@ sv_ev_room_message(ProfMessage *message)
char *mynick = muc_nick(mucwin->roomjid); char *mynick = muc_nick(mucwin->roomjid);
// messages from ourselves (account and this client) // only log message not coming from this client (but maybe same account, different client)
if (g_strcmp0(mynick, message->jid->resourcepart) == 0 && message_is_sent_by_us(message)) { // our messages are logged when outgoing
_log_muc(message); if (!(g_strcmp0(mynick, message->jid->resourcepart) == 0 && message_is_sent_by_us(message))) {
} else {
// messages from others
_log_muc(message); _log_muc(message);
} }