summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2024-05-07 23:26:01 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2024-05-07 23:26:29 +0200
commit82d9e57b6a3988696f207859e1f96211875c08ba (patch)
tree591b9068cecaa1ad2bf990e7d2ec4bae9d11c4af /src
parentFix possible pagination issue when a sync returns an empty limited timeline (diff)
downloadnheko-82d9e57b6a3988696f207859e1f96211875c08ba.tar.xz
Fix room mentions warning being displayed even without permissions
Diffstat (limited to 'src')
-rw-r--r--src/timeline/InputBar.cpp2
1 files changed, 1 insertions, 1 deletions
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)