mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-22 22:30:52 +01:00
Ejectall Confirmation (#93)
Co-authored-by: Snaiker <steveraki2000@gmail.com>
This commit is contained in:
parent
d2a01071f3
commit
1208720233
@ -131,6 +131,16 @@ const useChatInputWidgetState = () =>
|
||||
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;
|
||||
case ':furni':
|
||||
CreateLinkEvent('furni-chooser/');
|
||||
|
Loading…
Reference in New Issue
Block a user