1 files changed, 2 insertions, 0 deletions
diff --git a/src/timeline/RoomlistModel.cpp b/src/timeline/RoomlistModel.cpp
index 53fd9498..7d727659 100644
--- a/src/timeline/RoomlistModel.cpp
+++ b/src/timeline/RoomlistModel.cpp
@@ -627,6 +627,8 @@ RoomlistModel::acceptInvite(QString roomid)
if (invites.contains(roomid)) {
// Don't remove invite yet, so that we can switch to it
ChatPage::instance()->joinRoom(roomid);
+ utils::markRoomAsDirect(roomid,
+ cache::client()->getMembersFromInvite(roomid.toStdString(), 0, -1));
}
}
void
|