diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-10-31 13:45:44 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-10-31 13:45:44 +0100 |
commit | f71de61b9dc297d111a4ab2ccc77238251659574 (patch) | |
tree | 10303d1cb8565fcf05ebf5daaab7dca2c0748c30 /src/event | |
parent | 4ecd4dea6a0a4c216a57d039dc7dc01d5e41d68a (diff) | |
download | profani-tty-f71de61b9dc297d111a4ab2ccc77238251659574.tar.gz |
Don't override ProfMessage Id with origin-id
Profanity sends the same value for both. Other clients might not. Safe both since we could need them later. Once we implement Last Message Correction we will need the regular id. If we override it with origin-id and another client chooses to not use the same value for id and origin-id then we can't interpret the id sent with the LMC request correctly.
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/server_events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c index 33559230..f8f73d36 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -306,7 +306,7 @@ sv_ev_room_message(ProfMessage *message) // 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))) { + if (!(g_strcmp0(mynick, message->jid->resourcepart) == 0 && message_is_sent_by_us(message, TRUE))) { _log_muc(message); } |