From 0bdcaae5d13dbac4fa66864b91ab782502fe78eb Mon Sep 17 00:00:00 2001 From: kornes <28986062+kornes@users.noreply.github.com> Date: Sat, 18 Nov 2023 11:39:10 +0000 Subject: [PATCH] Fix: dont select mod buttons at triple click (#4961) --- CHANGELOG.md | 1 + src/messages/layouts/MessageLayoutContainer.cpp | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d9f7defe..16eab57ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ - Bugfix: Fixed a crash when clicking `More messages below` button in a usercard and closing it quickly. (#4933) - Bugfix: Fixed thread popup window missing messages for nested threads. (#4923) - Bugfix: Fixed an occasional crash for channel point redemptions with text input. (#4949) +- Bugfix: Fixed triple click on message also selecting moderation buttons. (#4961) - Bugfix: Fixed a freeze from a bad regex in _Ignores_. (#4965) - Bugfix: Fixed some emotes not appearing when using _Ignores_. (#4965) - Bugfix: Fixed lookahead/-behind not working in _Ignores_. (#4965) diff --git a/src/messages/layouts/MessageLayoutContainer.cpp b/src/messages/layouts/MessageLayoutContainer.cpp index ec2995b7d..0b2b729b8 100644 --- a/src/messages/layouts/MessageLayoutContainer.cpp +++ b/src/messages/layouts/MessageLayoutContainer.cpp @@ -430,9 +430,8 @@ size_t MessageLayoutContainer::getSelectionIndex(QPoint point) const size_t MessageLayoutContainer::getFirstMessageCharacterIndex() const { static const FlagsEnum skippedFlags{ - MessageElementFlag::RepliedMessage, - MessageElementFlag::Timestamp, - MessageElementFlag::Badges, + MessageElementFlag::RepliedMessage, MessageElementFlag::Timestamp, + MessageElementFlag::ModeratorTools, MessageElementFlag::Badges, MessageElementFlag::Username, };