Ejectall Confirmation (#93)

Co-authored-by: Snaiker <steveraki2000@gmail.com>
This commit is contained in:
Snaiker 2022-12-21 03:47:07 +00:00 committed by GitHub
parent d2a01071f3
commit 1208720233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,6 +131,16 @@ const useChatInputWidgetState = () =>
null, null, null, LocalizeText('generic.alert.title')); null, null, null, LocalizeText('generic.alert.title'));
} }
return null;
case ':ejectall':
if (roomSession.isRoomOwner || GetSessionDataManager().isModerator || roomSession.controllerLevel >= RoomControllerLevel.GUEST)
{
showConfirm(LocalizeText('room.confirm.eject_all'), () =>
{
GetSessionDataManager().sendSpecialCommandMessage(':ejectall');
},
null, null, null, LocalizeText('generic.alert.title'));
}
return null; return null;
case ':furni': case ':furni':
CreateLinkEvent('furni-chooser/'); CreateLinkEvent('furni-chooser/');