diff --git a/src/conversationmodel.cpp b/src/conversationmodel.cpp index 2dd6647e335a2bab606797a21bb606ddf13c0418..43d4fe978b5d729a57d934c021d8b15fde16e303 100644 --- a/src/conversationmodel.cpp +++ b/src/conversationmodel.cpp @@ -2106,8 +2106,8 @@ ConversationModelPimpl::sort(const conversation::Info& convA, const conversation std::lock_guard<std::mutex> lockConvA(mtxA, std::adopt_lock); std::lock_guard<std::mutex> lockConvB(mtxB, std::adopt_lock); - auto historyA = convA.interactions; - auto historyB = convB.interactions; + auto& historyA = convA.interactions; + auto& historyB = convB.interactions; // A or B is a new conversation (without CONTACT interaction) if (convA.uid.isEmpty() || convB.uid.isEmpty())