From 60d5c5d99f1bf547edf05203b450cd590950a312 Mon Sep 17 00:00:00 2001 From: Leon Richardt Date: Tue, 17 Nov 2020 18:47:07 +0100 Subject: [PATCH] [Fix] Use copy instead of reference for overriding message flags (#2200) * fix: use copy instead of reference for overriding message flags * doc: update changelog Note: the initial attempt at fixing this issue (#2090) was also included in order to make the development process more trackable. --- CHANGELOG.md | 2 +- src/widgets/helper/ChannelView.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1bbbcc2..63221dbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ - Minor: Added placeholder text for message text input box. (#2143, #2149) - Minor: Added support for FrankerFaceZ badges. (#2101, part of #1658) - Minor: Added a navigation list to the settings and reordered them. -- Major: Added "Channel Filters". See https://wiki.chatterino.com/Filters/ for how they work or how to configure them. (#1748, #2083) +- Major: Added "Channel Filters". See https://wiki.chatterino.com/Filters/ for how they work or how to configure them. (#1748, #2083, #2090, #2200) - Major: Added Streamer Mode configuration (under `Settings -> General`), where you can select which features of Chatterino should behave differently when you are in Streamer Mode. (#2001) - Minor: Improved viewer list window. - Minor: Added emote completion with `:` to the whispers channel (#2075) diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index 151588ab..e9739158 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -605,7 +605,7 @@ void ChannelView::setChannel(ChannelPtr underlyingChannel) } else { - overridingFlags = message->flags; + overridingFlags = MessageFlags(message->flags); overridingFlags.get().set(MessageFlag::DoNotLog); }