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

currentconversation: reset CurrentConversationMembers

Else, we may access an invalid index

Change-Id: I0ba0ce2c13c9788ce61a487e0bf9117062dc90d5
GitLab: #1081
This commit is contained in:
Sébastien Blin 2023-04-19 09:21:20 -04:00
parent f6c8197cba
commit 59843863ce

View file

@ -55,6 +55,7 @@ CurrentConversation::updateData()
// If the conversation is empty, clear the id and return.
if (convId.isEmpty()) {
set_id();
uris_->setMembers({}, {}, {});
return;
}
@ -266,6 +267,7 @@ CurrentConversation::updateConversationPreferences(const QString& convId)
void
CurrentConversation::connectModel()
{
uris_->setMembers({}, {}, {});
auto convModel = lrcInstance_->getCurrentConversationModel();
if (!convModel)
return;