From f71de61b9dc297d111a4ab2ccc77238251659574 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 31 Oct 2019 13:45:44 +0100 Subject: 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. --- src/event/server_events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/event/server_events.c') 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); } -- cgit 1.4.1-2-gfad0