From c1e04eeeff9cc8e8c82f0870dd3c01115395f6ec Mon Sep 17 00:00:00 2001 From: nerix Date: Sat, 5 Oct 2024 16:41:24 +0200 Subject: [PATCH] fix(shared-chat): check if source-channel is empty (#5625) --- CHANGELOG.md | 2 +- src/messages/MessageBuilder.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6514d6d..a9167f23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ - Major: Release plugins alpha. (#5288) - Major: Improve high-DPI support on Windows. (#4868, #5391) - Minor: Removed the Ctrl+Shift+L hotkey for toggling the "live only" tab visibility state. (#5530) -- Minor: Add support for Shared Chat messages. Shared chat messages can be filtered with the `flags.shared` filter variable, or with search using `is:shared`. Some messages like subscriptions are filtered on purpose to avoid confusion for the broadcaster. If you have both channels participating in Shared Chat open, only one of the message triggering your highlight will trigger. (#5606) +- Minor: Add support for Shared Chat messages. Shared chat messages can be filtered with the `flags.shared` filter variable, or with search using `is:shared`. Some messages like subscriptions are filtered on purpose to avoid confusion for the broadcaster. If you have both channels participating in Shared Chat open, only one of the message triggering your highlight will trigger. (#5606, #5625) - Minor: Moved tab visibility control to a submenu, without any toggle actions. (#5530) - Minor: Add option to customise Moderation buttons with images. (#5369) - Minor: Colored usernames now update on the fly when changing the "Color @usernames" setting. (#5300) diff --git a/src/messages/MessageBuilder.cpp b/src/messages/MessageBuilder.cpp index 168f1eb6..41048fb7 100644 --- a/src/messages/MessageBuilder.cpp +++ b/src/messages/MessageBuilder.cpp @@ -2688,7 +2688,7 @@ void MessageBuilder::parseRoomID() auto sourceChan = getApp()->getTwitch()->getChannelOrEmptyByID(sourceRoom); - if (sourceChan) + if (sourceChan && !sourceChan->isEmpty()) { this->sourceChannel = dynamic_cast(sourceChan.get());