Commit 7324eb89 authored by Sébastien Blin's avatar Sébastien Blin

conversationsview: check participants length

Change-Id: Ic3381662b44644d6fabbacef92c1200c8ab7fc9a
parent 6876a0e3
......@@ -278,6 +278,10 @@ update_conversation(ConversationsView *self, const std::string& uid) {
if(std::string(ringId) == uid) {
// Get informations
auto conversation = (*priv->accountInfo_)->conversationModel->filteredConversation(idx);
if (conversation.participants.empty()) {
g_free(ringId);
return;
}
auto contactUri = conversation.participants.front();
auto contactInfo = (*priv->accountInfo_)->contactModel->getContact(contactUri);
auto lastMessage = conversation.interactions.empty() ? "" :
......
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