From 4557b91ec6823b9c8fdc005f2c2eee199ea23210 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Mon, 22 Apr 2019 19:52:37 +0800 Subject: [PATCH] Fix #2 for real. --- src/roomlistmodel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/roomlistmodel.cpp b/src/roomlistmodel.cpp index d364755..2c574de 100644 --- a/src/roomlistmodel.cpp +++ b/src/roomlistmodel.cpp @@ -47,8 +47,7 @@ void RoomListModel::setConnection(Connection* connection) { [=](Connection::DirectChatsMap additions, Connection::DirectChatsMap removals) { for (QString roomID : additions.values() + removals.values()) - refresh(static_cast(connection->room(roomID)), - {CategoryRole}); + refresh(static_cast(connection->room(roomID))); }); doResetModel();