From ed5639648edeb0ed68be37bf9b0b23a3a6e219a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Fri, 2 Apr 2021 09:15:25 -0400 Subject: [PATCH] conversationmodel: add call notification asap for incoming call this allow showIncomingCall to be on top as sorted by last interactions Change-Id: I5f9e9dc1f9f187be406112385a4196b957613163 --- src/conversationmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/conversationmodel.cpp b/src/conversationmodel.cpp index 22bc17b2..b6801ba6 100644 --- a/src/conversationmodel.cpp +++ b/src/conversationmodel.cpp @@ -1903,9 +1903,10 @@ ConversationModelPimpl::slotIncomingCall(const QString& fromId, const QString& c } auto& conversation = conversations.at(conversationIdx); - qDebug() << "Add call to conversation with " << fromId; conversation.callId = callId; + + addOrUpdateCallMessage(callId, fromId); invalidateModel(); emit behaviorController.showIncomingCallView(linked.owner.id, conversation.uid); } -- GitLab