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:
parent
2a4d1b8410
commit
31014b5e51
@ -304,11 +304,9 @@ sv_ev_room_message(ProfMessage *message)
|
||||
|
||||
char *mynick = muc_nick(mucwin->roomjid);
|
||||
|
||||
// messages from ourselves (account and this client)
|
||||
if (g_strcmp0(mynick, message->jid->resourcepart) == 0 && message_is_sent_by_us(message)) {
|
||||
_log_muc(message);
|
||||
} else {
|
||||
// messages from others
|
||||
// only log message not coming from this client (but maybe same account, different client)
|
||||
// our messages are logged when outgoing
|
||||
if (!(g_strcmp0(mynick, message->jid->resourcepart) == 0 && message_is_sent_by_us(message))) {
|
||||
_log_muc(message);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user