Simplifie code

Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
pull/21833/head
Šimon Brandner 2021-06-24 17:23:42 +02:00 committed by GitHub
parent 430ae0e79f
commit e282c4aa54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -510,9 +510,9 @@ function textForPinnedEvent(event: MatrixEvent, allowJSX: boolean): () => string
}
</span>
);
} else {
return () => _t("%(senderName)s changed the pinned messages for the room.", { senderName });
}
return () => _t("%(senderName)s changed the pinned messages for the room.", { senderName });
}
function textForWidgetEvent(event): () => string | null {