From 14e8a2bf6c163b1a8f09478a7e2bd8a27fcf8911 Mon Sep 17 00:00:00 2001 From: Tal Neoran Date: Sat, 22 May 2021 16:11:24 +0300 Subject: [PATCH] Add #channel in mentions usercard and search popup (#2802) --- CHANGELOG.md | 1 + src/widgets/helper/ChannelView.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80c13006..1b59841c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unversioned +- Minor: Made "#channel" in `/mentions` tab show in usercards and in the search popup. (#2802) - Minor: Added settings to disable custom FrankerFaceZ VIP/mod badges. (#2693, #2759) ## 2.3.2 diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index d55f6a53..fd8e4752 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -1013,6 +1013,9 @@ MessageElementFlags ChannelView::getFlags() const } } + if (this->sourceChannel_ == app->twitch.server->mentionsChannel) + flags.set(MessageElementFlag::ChannelName); + return flags; }