Remove some dead code

This commit is contained in:
Tobias Fella
2021-10-12 13:29:38 +02:00
parent 82d49b91e7
commit 7bb7b7850b

View File

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