mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 22:40:50 +01:00
mod tools alert_only room mod
This commit is contained in:
parent
6536b36514
commit
967811b84d
@ -59,12 +59,13 @@ export const ModToolsRoomView: FC<ModToolsRoomViewProps> = props =>
|
|||||||
if(message.trim().length === 0) return;
|
if(message.trim().length === 0) return;
|
||||||
|
|
||||||
SendMessageComposer(new ModeratorActionMessageComposer(ModeratorActionMessageComposer.ACTION_ALERT, message, ''));
|
SendMessageComposer(new ModeratorActionMessageComposer(ModeratorActionMessageComposer.ACTION_ALERT, message, ''));
|
||||||
|
SendMessageComposer(new ModerateRoomMessageComposer(roomId, lockRoom ? 1 : 0, changeRoomName ? 1 : 0, kickUsers ? 1 : 0));
|
||||||
return;
|
return;
|
||||||
case 'send_message':
|
case 'send_message':
|
||||||
if(message.trim().length === 0) return;
|
if(message.trim().length === 0) return;
|
||||||
|
|
||||||
SendMessageComposer(new ModeratorActionMessageComposer(ModeratorActionMessageComposer.ACTION_MESSAGE, message, ''));
|
SendMessageComposer(new ModeratorActionMessageComposer(ModeratorActionMessageComposer.ACTION_MESSAGE, message, ''));
|
||||||
SendMessageComposer(new ModerateRoomMessageComposer(roomId, lockRoom ? 1 : 0, changeRoomName ? 1 : 0, kickUsers ? 1 : 0))
|
SendMessageComposer(new ModerateRoomMessageComposer(roomId, lockRoom ? 1 : 0, changeRoomName ? 1 : 0, kickUsers ? 1 : 0));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}, [ changeRoomName, kickUsers, lockRoom, message, roomId ]);
|
}, [ changeRoomName, kickUsers, lockRoom, message, roomId ]);
|
||||||
|
Loading…
Reference in New Issue
Block a user