From 37220ab872121ae2de6713024a3f7b9a61c42f6b Mon Sep 17 00:00:00 2001 From: James Graham Date: Thu, 18 May 2023 19:23:31 +0000 Subject: [PATCH] Fix notification state in new rooms Make sure that the `updateNotificationState` function is called when the base state is loaded so that new rooms after startup have a valid notification state. Fixes network/neochat#583 --- src/neochatroom.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/neochatroom.cpp b/src/neochatroom.cpp index e6f003c00..1d380eafe 100644 --- a/src/neochatroom.cpp +++ b/src/neochatroom.cpp @@ -101,6 +101,8 @@ NeoChatRoom::NeoChatRoom(Connection *connection, QString roomId, JoinState joinS connect(this, &Room::displaynameChanged, this, &NeoChatRoom::displayNameChanged); connectSingleShot(this, &Room::baseStateLoaded, this, [this]() { + updatePushNotificationState(QStringLiteral("m.push_rules")); + Q_EMIT canEncryptRoomChanged(); if (this->joinState() != JoinState::Invite) { return;