1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-03 13:43:34 +02:00

misc: eliminate the warning of invalid map<K, T> key (map::at)

GitLab: #160

Change-Id: Ib2de72037d2e0b5fc7c29e5686f9336bbc7ed035
This commit is contained in:
Ming Rui Zhang 2021-04-06 14:14:44 -04:00 committed by Sébastien Blin
parent 33fd4f486c
commit f09b9a085a

View file

@ -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(