From 82d49b91e7a82f9a9af2c89d831e8da11d709a0e Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Tue, 12 Oct 2021 00:36:52 +0200 Subject: [PATCH] Add custom message for acl events in statedelegates --- src/neochatroom.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/neochatroom.cpp b/src/neochatroom.cpp index 68c66cf78..1759ce18a 100644 --- a/src/neochatroom.cpp +++ b/src/neochatroom.cpp @@ -463,6 +463,9 @@ QString NeoChatRoom::eventToString(const RoomEvent &evt, Qt::TextFormat format, : i18n("created the room, version %1", e.version().isEmpty() ? "1" : e.version().toHtmlEscaped()); }, [](const StateEventBase &e) { + if (e.matrixType() == QLatin1String("m.room.server_acl")) { + return i18n("changed the server access control lists for this room"); + } // A small hack for state events from TWIM bot return e.stateKey() == "twim" ? i18n("updated the database") : e.stateKey().isEmpty() ? i18n("updated %1 state", e.matrixType())