From 967811b84d52e3189d7d5eded0bae6129d25351c Mon Sep 17 00:00:00 2001 From: Layne Date: Wed, 16 Mar 2022 15:43:17 -0400 Subject: [PATCH] mod tools alert_only room mod --- src/components/mod-tools/views/room/ModToolsRoomView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/mod-tools/views/room/ModToolsRoomView.tsx b/src/components/mod-tools/views/room/ModToolsRoomView.tsx index 16f878d3..c8fd6e65 100644 --- a/src/components/mod-tools/views/room/ModToolsRoomView.tsx +++ b/src/components/mod-tools/views/room/ModToolsRoomView.tsx @@ -59,12 +59,13 @@ export const ModToolsRoomView: FC = props => if(message.trim().length === 0) return; SendMessageComposer(new ModeratorActionMessageComposer(ModeratorActionMessageComposer.ACTION_ALERT, message, '')); + SendMessageComposer(new ModerateRoomMessageComposer(roomId, lockRoom ? 1 : 0, changeRoomName ? 1 : 0, kickUsers ? 1 : 0)); return; case 'send_message': if(message.trim().length === 0) return; 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; } }, [ changeRoomName, kickUsers, lockRoom, message, roomId ]);