diff --git a/src/conversationmodel.cpp b/src/conversationmodel.cpp index 2dcf2a87ff28cd5c71a995bb9019f2597edb81ee..a39ce0fcacea6ba2035db880445c2849c3ca30e6 100644 --- a/src/conversationmodel.cpp +++ b/src/conversationmodel.cpp @@ -1192,6 +1192,10 @@ ConversationModelPimpl::sortConversations() auto historyB = conversationB.interactions; // A or B is a new conversation (without CONTACT interaction) if (conversationA.uid.empty() || conversationB.uid.empty()) return conversationA.uid.empty(); + if (historyA.empty() && historyB.empty()) { + // If no information to compare, sort by Ring ID + return conversationA.participants.front() > conversationB.participants.front(); + } if (historyA.empty()) return false; if (historyB.empty()) return true; // Sort by last Interaction