Commit 17537591 authored by Ronan's avatar Ronan

fix(ChatMessage): mark outgoing message on receive only when the chat room...

fix(ChatMessage): mark outgoing message on receive only when the chat room local is equal to the from address
parent f3856c45
Pipeline #268 failed with stage
in 0 seconds
......@@ -575,8 +575,7 @@ LinphoneReason ChatMessagePrivate::receive () {
}
// Check if this is in fact an outgoing message (case where this is a message sent by us from an other device).
Address me(linphone_core_get_identity(core->getCCore()));
if (me.weakEqual(q->getFromAddress()))
if (Address(chatRoom->getLocalAddress()).weakEqual(q->getFromAddress()))
setDirection(ChatMessage::Direction::Outgoing);
// Check if this is a duplicate message.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment