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:
parent
f6c8197cba
commit
59843863ce
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue