fix(shared-chat): check if source-channel is empty (#5625)

This commit is contained in:
nerix
2024-10-05 16:41:24 +02:00
committed by GitHub
parent 0b52880a37
commit c1e04eeeff
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2688,7 +2688,7 @@ void MessageBuilder::parseRoomID()
auto sourceChan =
getApp()->getTwitch()->getChannelOrEmptyByID(sourceRoom);
if (sourceChan)
if (sourceChan && !sourceChan->isEmpty())
{
this->sourceChannel =
dynamic_cast<TwitchChannel *>(sourceChan.get());