mod tools alert_only room mod

This commit is contained in:
Layne 2022-03-16 15:43:17 -04:00
parent 6536b36514
commit 967811b84d

View File

@ -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 ]);