chore: remove Singleton & replace getIApp with getApp (#5514)
This commit is contained in:
@@ -32,7 +32,7 @@ bool isIgnoredMessage(IgnoredMessageParameters &¶ms)
|
||||
{
|
||||
auto sourceUserID = params.twitchUserID;
|
||||
|
||||
bool isBlocked = getIApp()
|
||||
bool isBlocked = getApp()
|
||||
->getAccounts()
|
||||
->twitch.getCurrent()
|
||||
->blockedUserIds()
|
||||
|
||||
@@ -95,7 +95,7 @@ bool IgnorePhrase::containsEmote() const
|
||||
{
|
||||
if (!this->emotesChecked_)
|
||||
{
|
||||
const auto &accvec = getIApp()->getAccounts()->twitch.accounts;
|
||||
const auto &accvec = getApp()->getAccounts()->twitch.accounts;
|
||||
for (const auto &acc : accvec)
|
||||
{
|
||||
const auto &accemotes = *acc->accessEmotes();
|
||||
|
||||
Reference in New Issue
Block a user