Updated websocket.py to fix official client errors

This commit is contained in:
Alex Liu 2020-06-19 18:57:38 +00:00 committed by Luna
parent 918a20f274
commit b099681dee
1 changed files with 7 additions and 2 deletions

View File

@ -337,14 +337,19 @@ class GatewayWebsocket:
"notes": await self.user_storage.fetch_notes(user_id), "notes": await self.user_storage.fetch_notes(user_id),
"relationships": relationships, "relationships": relationships,
"presences": friend_presences, "presences": friend_presences,
"read_state": await self.user_storage.get_read_state(user_id), "read_state": {"entries": await self.user_storage.get_read_state(user_id)},
"user_guild_settings": await self.user_storage.get_guild_settings(user_id), "user_guild_settings": {
"entries": await self.user_storage.get_guild_settings(user_id)
},
"friend_suggestion_count": 0, "friend_suggestion_count": 0,
# those are unused default values. # those are unused default values.
"connected_accounts": [], "connected_accounts": [],
"experiments": [], "experiments": [],
"guild_experiments": [], "guild_experiments": [],
"analytics_token": "transbian", "analytics_token": "transbian",
"users": [],
"merged_members": [[], [], [], []],
"merged_presences": {"friends": [], "guilds": []},
} }
async def dispatch_ready(self, **kwargs): async def dispatch_ready(self, **kwargs):