Fix crash and completion in other special channels than /whispers (#3033)

This commit is contained in:
Paweł
2021-07-17 21:33:03 +02:00
committed by GitHub
parent 89b86b94e7
commit 9f2fc90928
3 changed files with 11 additions and 11 deletions
+1 -2
View File
@@ -464,8 +464,7 @@ void SplitInput::updateCompletionPopup()
auto channel = this->split_->getChannel().get();
auto tc = dynamic_cast<TwitchChannel *>(channel);
bool showEmoteCompletion =
getSettings()->emoteCompletionWithColon &&
(tc || (channel->getType() == Channel::Type::TwitchWhispers));
channel->isTwitchChannel() && getSettings()->emoteCompletionWithColon;
bool showUsernameCompletion =
tc && getSettings()->showUsernameCompletionMenu;
if (!showEmoteCompletion && !showUsernameCompletion)