Skip to content

Commit

Permalink
[FIX] Room special name in prompts (#20277)
Browse files Browse the repository at this point in the history
  • Loading branch information
aKn1ghtOut committed Jan 20, 2021
1 parent b55a5ea commit 99462f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/views/room/contextualBar/Info/RoomInfo/RoomInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default ({
const room = useUserRoom(rid);
room.type = room.t;
room.rid = rid;
const { type, name, broadcast, archived, joined = true } = room; // TODO implement joined
const { type, fname, broadcast, archived, joined = true } = room; // TODO implement joined

const retentionPolicyEnabled = useSetting('RetentionPolicy_Enabled');
const retentionPolicy = {
Expand Down Expand Up @@ -207,7 +207,7 @@ export default ({
const warnText = roomTypes.getConfig(type).getUiText(UiTextContext.LEAVE_WARNING);

setModal(<WarningModal
text={t(warnText, name)}
text={t(warnText, fname)}
confirmText={t('Leave_room')}
close={closeModal}
cancel={closeModal}
Expand All @@ -230,7 +230,7 @@ export default ({
const warnText = roomTypes.getConfig(type).getUiText(UiTextContext.HIDE_WARNING);

setModal(<WarningModal
text={t(warnText, name)}
text={t(warnText, fname)}
confirmText={t('Yes_hide_it')}
close={closeModal}
cancel={closeModal}
Expand Down

0 comments on commit 99462f0

Please sign in to comment.