Commit cf359be9 authored by Andreas Traczyk's avatar Andreas Traczyk

conversationmodel: remove some excess model row insertion signals

Change-Id: Ic30862ee4446d5e9fe6292e248e4b15a8cec5dab
parent ca8eb77e
......@@ -966,10 +966,8 @@ ConversationModel::createConversation(const VectorString& participants, const QS
info["title"] = title;
updateConversationInfo(convUid, info);
}
Q_EMIT beginInsertRows(pimpl_->conversations.size());
pimpl_->addSwarmConversation(convUid);
emit newConversation(convUid);
Q_EMIT endInsertRows();
pimpl_->invalidateModel();
emit modelChanged();
}
......@@ -2377,7 +2375,6 @@ ConversationModelPimpl::slotConversationReady(const QString& accountId,
bool conversationExists = conversationIdx >= 0;
if (!conversationExists) {
Q_EMIT linked.beginInsertRows(conversations.size());
addSwarmConversation(conversationId);
}
auto& conversation = getConversationForUid(conversationId).get();
......@@ -2411,7 +2408,6 @@ ConversationModelPimpl::slotConversationReady(const QString& accountId,
}
emit linked.newConversation(conversationId);
emit linked.modelChanged();
Q_EMIT linked.endInsertRows();
}
void
......
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