From 128f9812a6ed9f7ab7711ddb0bfc1223009acc3f Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 31 May 2021 13:08:06 +0200 Subject: [PATCH] set destructive flag here too --- src/platform/web/ui/session/room/RoomView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/web/ui/session/room/RoomView.js b/src/platform/web/ui/session/room/RoomView.js index fff875b8..ea84678b 100644 --- a/src/platform/web/ui/session/room/RoomView.js +++ b/src/platform/web/ui/session/room/RoomView.js @@ -68,10 +68,10 @@ export class RoomView extends TemplateView { const vm = this.value; const options = []; if (vm.canLeave) { - options.push(Menu.option(vm.i18n`Leave room`, () => vm.leaveRoom())); + options.push(Menu.option(vm.i18n`Leave room`, () => vm.leaveRoom()).setDestructive()); } if (vm.canForget) { - options.push(Menu.option(vm.i18n`Forget room`, () => vm.forgetRoom())); + options.push(Menu.option(vm.i18n`Forget room`, () => vm.forgetRoom()).setDestructive()); } if (vm.canRejoin) { options.push(Menu.option(vm.i18n`Rejoin room`, () => vm.rejoinRoom()));