fix: Show Emoji Completion in IRC Channels (#4021)

This commit is contained in:
nerix
2022-09-30 22:59:52 +02:00
committed by GitHub
parent d9e17e69cf
commit 9554b83c1a
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -110,10 +110,10 @@ void InputCompletionPopup::updateEmotes(const QString &text, ChannelPtr channel)
addEmotes(emotes, *bttvG, text, "Global BetterTTV");
if (auto ffzG = getApp()->twitch->getFfzEmotes().emotes())
addEmotes(emotes, *ffzG, text, "Global FrankerFaceZ");
addEmojis(emotes, getApp()->emotes->emojis.emojis, text);
}
addEmojis(emotes, getApp()->emotes->emojis.emojis, text);
// if there is an exact match, put that emote first
for (size_t i = 1; i < emotes.size(); i++)
{
+1 -2
View File
@@ -661,8 +661,7 @@ void SplitInput::updateCompletionPopup()
{
auto channel = this->split_->getChannel().get();
auto tc = dynamic_cast<TwitchChannel *>(channel);
bool showEmoteCompletion =
channel->isTwitchChannel() && getSettings()->emoteCompletionWithColon;
bool showEmoteCompletion = getSettings()->emoteCompletionWithColon;
bool showUsernameCompletion =
tc && getSettings()->showUsernameCompletionMenu;
if (!showEmoteCompletion && !showUsernameCompletion)