Fix room mentions warning being displayed even without permissions

pull/1726/head
Nicolas Werner 7 months ago
parent 821390c7d6
commit 82d9e57b6a
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      CMakeLists.txt
  2. 2
      im.nheko.Nheko.yaml
  3. 2
      src/timeline/InputBar.cpp

@ -604,7 +604,7 @@ if(USE_BUNDLED_MTXCLIENT)
FetchContent_Declare(
MatrixClient
GIT_REPOSITORY https://github.com/Nheko-Reborn/mtxclient.git
GIT_TAG 4fb7d678aeea197d16b52bfb1dc35b506673bb52
GIT_TAG 58af2030c22e2dae7d6156c70572714c6363acee
)
set(BUILD_LIB_EXAMPLES OFF CACHE INTERNAL "")
set(BUILD_LIB_TESTS OFF CACHE INTERNAL "")

@ -223,7 +223,7 @@ modules:
buildsystem: cmake-ninja
name: mtxclient
sources:
- commit: 4fb7d678aeea197d16b52bfb1dc35b506673bb52
- commit: 58af2030c22e2dae7d6156c70572714c6363acee
#tag: v0.9.2
type: git
url: https://github.com/Nheko-Reborn/mtxclient.git

@ -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)

Loading…
Cancel
Save