From 4ed4f3f628f30ae27b26ef48d961f2a6703d0595 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sat, 23 Sep 2023 11:42:21 +0200 Subject: [PATCH] Silence invalid user id warnings --- src/models/pushrulemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/pushrulemodel.cpp b/src/models/pushrulemodel.cpp index a3ee19d38..25dbf1e99 100644 --- a/src/models/pushrulemodel.cpp +++ b/src/models/pushrulemodel.cpp @@ -171,7 +171,7 @@ PushNotificationSection::Section PushRuleModel::getSection(Quotient::PushRule ru if (!testUserId.startsWith(u'@')) { testUserId.prepend(u'@'); } - if (connection->user(testUserId) != nullptr) { + if (testUserId.startsWith(u'@') && !Quotient::serverPart(testUserId).isEmpty() && connection->user(testUserId) != nullptr) { return PushNotificationSection::Undefined; } // If the rule has push conditions and one is a room ID it is a room only keyword.