Trigger a reload after emote confirmations too
This commit is contained in:
1 parent
633753aaa3
commit
c8015a1efc
1 file changed
+5
-1
@@ -1206,7 +1206,11 @@ class Twitch:
|
|||||||
async def process_notifications(self, user_id: int, message: JsonType):
|
async def process_notifications(self, user_id: int, message: JsonType):
|
||||||
if message["type"] == "create-notification":
|
if message["type"] == "create-notification":
|
||||||
data: JsonType = message["data"]["notification"]
|
data: JsonType = message["data"]["notification"]
|
||||||
if data["type"] == "user_drop_reward_reminder_notification":
|
if data["type"] in (
|
||||||
|
"user_drop_reward_reminder_notification", # drop confirmation
|
||||||
|
"quests_viewer_reward_campaign_earned_emote", # emote confirmation
|
||||||
|
# badge confirmation?
|
||||||
|
):
|
||||||
self.change_state(State.INVENTORY_FETCH)
|
self.change_state(State.INVENTORY_FETCH)
|
||||||
await self.gql_request(
|
await self.gql_request(
|
||||||
GQL_OPERATIONS["NotificationsDelete"].with_variables(
|
GQL_OPERATIONS["NotificationsDelete"].with_variables(
|
||||||
|
|||||||
Reference in new issue
Block a user