Commit eb09ee23 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Useless change

parent feb4630f
......@@ -84,14 +84,14 @@ ChatMessageModifier::Result EncryptionChatMessageModifier::decode (
return ChatMessageModifier::Result::Skipped;
int retval = cbProcessIncomingMessage(imee, L_GET_C_BACK_PTR(chatRoom), L_GET_C_BACK_PTR(message));
if (retval != 0 && retval != -1 && retval != 1) {
if (retval == -1)
return ChatMessageModifier::Result::Skipped;
if (retval != 0 && retval != 1) {
errorCode = retval;
return ChatMessageModifier::Result::Error;
}
if (retval == -1)
return ChatMessageModifier::Result::Skipped;
message->setIsSecured(true);
if (retval == 1)
return ChatMessageModifier::Result::Suspended;
......
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