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

This commit is contained in:
Ghislain MARY 2018-02-16 16:54:31 +01:00
parent 9ca30446d5
commit d64310cd0c

View file

@ -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();
}