refactor: make Application::emotes private (#5109)
This commit is contained in:
@@ -325,8 +325,10 @@ void TwitchAccount::loadUserstateEmotes(std::weak_ptr<Channel> weakChannel)
|
||||
|
||||
emoteSet->emotes.push_back(TwitchEmote{id, code});
|
||||
|
||||
auto emote =
|
||||
getApp()->emotes->twitch.getOrCreateEmote(id, code);
|
||||
auto emote = getIApp()
|
||||
->getEmotes()
|
||||
->getTwitchEmotes()
|
||||
->getOrCreateEmote(id, code);
|
||||
|
||||
// Follower emotes can be only used in their origin channel
|
||||
// unless the user is subscribed, then they can be used anywhere.
|
||||
|
||||
@@ -576,7 +576,8 @@ void TwitchChannel::roomIdChanged()
|
||||
QString TwitchChannel::prepareMessage(const QString &message) const
|
||||
{
|
||||
auto *app = getApp();
|
||||
QString parsedMessage = app->emotes->emojis.replaceShortCodes(message);
|
||||
QString parsedMessage =
|
||||
app->getEmotes()->getEmojis()->replaceShortCodes(message);
|
||||
|
||||
parsedMessage = parsedMessage.simplified();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user