diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ac5b34c..e11763de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unversioned +- Minor: Moved the "Delete message" menu option into a "Moderate" sub-menu. (#6100) - Bugfix: Fixed the channel name input not being focused when opening the select-channel dialog. (#6096) - Bugfix: Fixed inputs in dialogs not having a border around and padding in them. (#6098) - Dev: Temporarily disable precompiled header support for macOS. (#6104) diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index 399fd238..b3e14eaa 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -2578,7 +2578,11 @@ void ChannelView::addMessageContextMenuItems(QMenu *menu, if (!layout->getMessage()->id.isEmpty() && twitchChannel && twitchChannel->hasModRights()) { - menu->addAction( + menu->addSeparator(); + auto *moderateAction = menu->addAction("Mo&derate"); + auto *moderateMenu = new QMenu(menu); + moderateAction->setMenu(moderateMenu); + moderateMenu->addAction( "&Delete message", [twitchChannel, id = layout->getMessage()->id] { twitchChannel->deleteMessagesAs( id, getApp()->getAccounts()->twitch.getCurrent().get());