Commit 3a1bd6a2 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(src/components/chat/ChatModel): handle correctly call events

parent 49f42df3
......@@ -567,7 +567,10 @@ void ChatModel::resetMessagesCount () {
// -----------------------------------------------------------------------------
void ChatModel::handleCallStateChanged (const shared_ptr<linphone::Call> &call, linphone::CallState state) {
if (mChatRoom == call->getChatRoom() && (state == linphone::CallStateEnd || state == linphone::CallStateError))
if (
(state == linphone::CallStateEnd || state == linphone::CallStateError) &&
mChatRoom == CoreManager::getInstance()->getCore()->getChatRoom(call->getRemoteAddress())
)
insertCall(call->getCallLog());
}
......
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