1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

conversations: prevent account reselection on filterChanged event

Change-Id: Iab0a6a2316ccc3529829e9ff9cdd3ca643ccdac2
This commit is contained in:
Andreas Traczyk 2020-10-21 15:07:13 -04:00
parent fd82ae2cd4
commit 66b9dd823d

View file

@ -94,7 +94,7 @@ ConversationsAdapter::selectConversation(const QString& accountId, const QString
Utils::oneShotConnect(&LRCInstance::instance(),
&LRCInstance::currentAccountChanged,
[selectConversation] { selectConversation(); });
LRCInstance::setSelectedConvId(); // Hack UI
LRCInstance::setSelectedConvId();
LRCInstance::setSelectedAccountId(convInfo.accountId);
} else {
selectConversation();
@ -224,7 +224,8 @@ ConversationsAdapter::connectConversationModel(bool updateFilter)
conversationSmartListModel_
->fillConversationsList();
updateConversationsFilterWidget();
emit indexRepositionRequested();
if (!LRCInstance::getCurrentConvUid().isEmpty())
emit indexRepositionRequested();
emit updateListViewRequested();
});