From f09b9a085aa5bcac3dab1022952a2c24eb73e650 Mon Sep 17 00:00:00 2001
From: Ming Rui Zhang <mingrui.zhang@savoirfairelinux.com>
Date: Tue, 6 Apr 2021 14:14:44 -0400
Subject: [PATCH] misc: eliminate the warning of invalid map<K, T> key
 (map::at)

GitLab: #160

Change-Id: Ib2de72037d2e0b5fc7c29e5686f9336bbc7ed035
---
 src/smartlistmodel.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/smartlistmodel.cpp b/src/smartlistmodel.cpp
index 096ebb31e..caf18b0ad 100644
--- a/src/smartlistmodel.cpp
+++ b/src/smartlistmodel.cpp
@@ -343,7 +343,7 @@ SmartListModel::getConversationItemData(const conversation::Info& item,
     }
     case Role::CallStackViewShouldShow: {
         const auto& convInfo = lrcInstance_->getConversationFromConvUid(item.uid);
-        if (!convInfo.uid.isEmpty()) {
+        if (!convInfo.uid.isEmpty() && !convInfo.callId.isEmpty()) {
             auto* callModel = lrcInstance_->getCurrentCallModel();
             const auto& call = callModel->getCall(convInfo.callId);
             return QVariant(
-- 
GitLab