From 6a002fab81864ff8f3426880d9424604c042e9dd Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 21 Jul 2021 13:19:41 -0400 Subject: [PATCH] Add name change to context menu --- .../views/own-avatar/AvatarInfoWidgetOwnAvatarView.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/room/widgets/avatar-info/views/own-avatar/AvatarInfoWidgetOwnAvatarView.tsx b/src/views/room/widgets/avatar-info/views/own-avatar/AvatarInfoWidgetOwnAvatarView.tsx index 58e851ef..1fa8cb40 100644 --- a/src/views/room/widgets/avatar-info/views/own-avatar/AvatarInfoWidgetOwnAvatarView.tsx +++ b/src/views/room/widgets/avatar-info/views/own-avatar/AvatarInfoWidgetOwnAvatarView.tsx @@ -111,6 +111,10 @@ export const AvatarInfoWidgetOwnAvatarView: FC { (mode === MODE_NORMAL) && <> + { userData.allowNameChange && + processAction('change_name') }> + { LocalizeText('widget.avatar.change_name') } + } processAction('decorate') }> { LocalizeText('widget.avatar.decorate') }