From 5b59f198e9a77564154df1f881512c835d4d8cad Mon Sep 17 00:00:00 2001 From: Anton Zernin Date: Fri, 23 Jul 2021 21:44:57 +0300 Subject: [PATCH] [commhistoryd] Fix group matching when there are multiple recipients. Fixes JB#55101 When you find an individual chat, use it. Incoming messages are not added to group chats. --- src/textchannellistener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textchannellistener.cpp b/src/textchannellistener.cpp index ccd33f2..2844f12 100644 --- a/src/textchannellistener.cpp +++ b/src/textchannellistener.cpp @@ -1516,7 +1516,7 @@ void TextChannelListener::updateCurrentGroup(int start, int end, const QModelInd } else if (recipients.containsMatch(recipient)) { m_Group = group; qCDebug(lcCommhistoryd) << Q_FUNC_INFO << "found existing group:" << m_Group.id(); - break; + return; } } }