From 82d9e57b6a3988696f207859e1f96211875c08ba Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 7 May 2024 23:26:01 +0200 Subject: Fix room mentions warning being displayed even without permissions --- src/timeline/InputBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp index 1a086c2b..1636bcd1 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp @@ -241,7 +241,7 @@ InputBar::updateTextContentProperties(const QString &t, bool charDeleted) } } - auto roomMention = containsRoomMention(t); + auto roomMention = containsRoomMention(t) && this->room->permissions()->canPingRoom(); if (roomMention != this->containsAtRoom_) { if (roomMention) -- cgit 1.4.1