Remove some dead code
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user