mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-04 05:09:27 +00:00
fix(src/components/chat/ChatModel): handle correctly call events
This commit is contained in:
parent
49f42df310
commit
3a1bd6a2c9
1 changed files with 4 additions and 1 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue