Commit 4e95aae8 authored by Sébastien Blin's avatar Sébastien Blin

conversationmodel: do not crash if no peers in conv

Change-Id: Idb6235365817539f944fd2e42a4ee9ba55c08918
parent f0481f59
......@@ -425,7 +425,8 @@ ConversationModel::getConferenceableConversations(const QString& convId, const Q
// conversations with calls will be added in call section
// we want to add only contacts non-swarm or one-to-one conversation
auto& peers = pimpl_->peersForConversation(conv);
if (!conv.callId.isEmpty() || !conv.confId.isEmpty() || !pimpl_->isCoreDialog(conv)) {
if (!conv.callId.isEmpty() || !conv.confId.isEmpty() || !pimpl_->isCoreDialog(conv)
|| peers.empty()) {
try {
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