Commit 54a63ed1 authored by Matthieu Tanon's avatar Matthieu Tanon
Browse files

Fix unsafe sender device control

parent 31222f55
......@@ -315,8 +315,9 @@ ChatMessageModifier::Result LimeV2::processIncomingMessage (const shared_ptr<Cha
}();
// Discard incoming messages from unsafe peer devices
peerDeviceStatus = belleSipLimeManager->get_peerDeviceStatus(senderDeviceId);
if (peerDeviceStatus == lime::PeerDeviceStatus::unsafe) {
lWarning() << "LIMEv2 discard incoming message from unsafe sender device";
lWarning() << "LIMEv2 discard incoming message from unsafe sender device " << senderDeviceId;
errorCode = 488; // Not Acceptable
return ChatMessageModifier::Result::Error;
}
......
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