Add ourselves into the ringing lookup cache.

This commit is contained in:
Rapptz 2016-07-15 23:43:40 -04:00
parent bd39c3ef45
commit d961bc4da0

View File

@ -107,6 +107,8 @@ class GroupCall:
def _update(self, **kwargs):
self.region = try_enum(ServerRegion, kwargs.get('region'))
lookup = {u.id: u for u in self.call.channel.recipients}
me = self.call.channel.me
lookup[me.id] = me
self.ringing = list(filter(None, map(lambda i: lookup.get(i), kwargs.get('ringing', []))))
def _update_voice_state(self, data):