From 7bb7b7850b64ca0ff1bb6993ec20ffc8b43cb42e Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Tue, 12 Oct 2021 13:29:38 +0200 Subject: [PATCH] Remove some dead code --- src/neochatroom.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/neochatroom.cpp b/src/neochatroom.cpp index 1759ce18a..63e84e9e3 100644 --- a/src/neochatroom.cpp +++ b/src/neochatroom.cpp @@ -466,9 +466,7 @@ QString NeoChatRoom::eventToString(const RoomEvent &evt, Qt::TextFormat format, 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()) + return e.stateKey().isEmpty() ? i18n("updated %1 state", e.matrixType()) : i18n("updated %1 state for %2", e.matrixType(), e.stateKey().toHtmlEscaped()); }, i18n("Unknown event"));