Commit d64310cd authored by Ghislain MARY's avatar Ghislain MARY

Do not notify is-composing received false state when receiving an is-composing or imdn message.

parent 9ca30446
......@@ -241,8 +241,12 @@ end:
void ChatRoomPrivate::onChatMessageReceived (const shared_ptr<ChatMessage> &chatMessage) {
const IdentityAddress &fromAddress = chatMessage->getFromAddress();
isComposingHandler->stopRemoteRefreshTimer(fromAddress.asString());
notifyIsComposingReceived(fromAddress, false);
if ((chatMessage->getPrivate()->getContentType() != ContentType::ImIsComposing)
&& (chatMessage->getPrivate()->getContentType() != ContentType::Imdn)
) {
isComposingHandler->stopRemoteRefreshTimer(fromAddress.asString());
notifyIsComposingReceived(fromAddress, false);
}
chatMessage->getPrivate()->notifyReceiving();
}
......
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