Migrate more strings to translation keys (#11651)
This commit is contained in:
committed by
GitHub
parent
560449676b
commit
f4d056fd38
@@ -27,7 +27,7 @@ export function getNameForEventRoom(matrixClient: MatrixClient, userId: string,
|
||||
export function userLabelForEventRoom(matrixClient: MatrixClient, userId: string, roomId: string): string {
|
||||
const name = getNameForEventRoom(matrixClient, userId, roomId);
|
||||
if (name !== userId) {
|
||||
return _t("%(name)s (%(userId)s)", { name, userId });
|
||||
return _t("name_and_id", { name, userId });
|
||||
} else {
|
||||
return userId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user