Skip to content
Snippets Groups Projects
Commit 59843863 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

currentconversation: reset CurrentConversationMembers

Else, we may access an invalid index

Change-Id: I0ba0ce2c13c9788ce61a487e0bf9117062dc90d5
GitLab: #1081
parent f6c8197c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment