pubsub.guild: drop presence flags when passing it to channels

This commit is contained in:
Luna 2019-07-20 13:22:56 -03:00
parent ad751cdad7
commit f99ad7a207
1 changed files with 5 additions and 1 deletions

View File

@ -58,7 +58,11 @@ class GuildDispatcher(DispatcherWithFlags):
# it is an idea to have flags support for other actions
args = []
if action == 'sub':
args.append(flags)
chanflags = dict(flags)
# channels don't need presence flags
chanflags.pop('presence')
args.append(chanflags)
await self.main_dispatcher.action(
'channel', action, chan_id, user_id, *args