Fix crash after logout
This commit is contained in:
committed by
Tobias Fella
parent
c0ea52c331
commit
d9aa77a9f4
@@ -268,6 +268,10 @@ void NotificationsManager::updateNotificationRules(const QString &type)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Controller::instance().activeConnection()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const QJsonObject accountData = Controller::instance().activeConnection()->accountDataJson("m.push_rules");
|
||||
|
||||
// Update override rules
|
||||
|
||||
Reference in New Issue
Block a user