diff --git a/ui/app/AppLayouts/Chat/components/ChannelContextMenu.qml b/ui/app/AppLayouts/Chat/components/ChannelContextMenu.qml index 7f79cc9dda..793f05a1a7 100644 --- a/ui/app/AppLayouts/Chat/components/ChannelContextMenu.qml +++ b/ui/app/AppLayouts/Chat/components/ChannelContextMenu.qml @@ -134,8 +134,22 @@ PopupMenu { icon.width: 16 icon.height: 16 icon.color: Style.current.red - onTriggered: chatsModel.leaveChatByIndex(channelContextMenu.channelIndex) + onTriggered: openPopup(deleteChatConfirmationDialogComponent) enabled: !chatsModel.communities.activeCommunity.active } + + Component { + id: deleteChatConfirmationDialogComponent + ConfirmationDialog { + btnType: "warn" + onClosed: { + destroy() + } + onConfirmButtonClicked: { + chatsModel.leaveChatByIndex(channelContextMenu.channelIndex) + close(); + } + } + } }