forked from sch/Slixfeed
Fix caps by setting up all items before presence
Note that update_caps also sends presence by default, when broadcast=True
This commit is contained in:
parent
d3af15d623
commit
d7c213fe59
1 changed files with 4 additions and 6 deletions
|
@ -201,20 +201,18 @@ class Slixfeed(slixmpp.ClientXMPP):
|
||||||
|
|
||||||
|
|
||||||
async def on_session_start(self, event):
|
async def on_session_start(self, event):
|
||||||
self.send_presence()
|
profile.set_identity(self, 'client')
|
||||||
await self['xep_0115'].update_caps(preserve=True)
|
self.service_commands()
|
||||||
|
self.service_reactions()
|
||||||
|
await self['xep_0115'].update_caps()
|
||||||
await self.get_roster()
|
await self.get_roster()
|
||||||
await XmppGroupchat.autojoin(self)
|
await XmppGroupchat.autojoin(self)
|
||||||
profile.set_identity(self, 'client')
|
|
||||||
await profile.update(self)
|
await profile.update(self)
|
||||||
task.task_ping(self)
|
task.task_ping(self)
|
||||||
|
|
||||||
# Service.commands(self)
|
# Service.commands(self)
|
||||||
# Service.reactions(self)
|
# Service.reactions(self)
|
||||||
|
|
||||||
self.service_commands()
|
|
||||||
self.service_reactions()
|
|
||||||
|
|
||||||
|
|
||||||
async def on_session_resumed(self, event):
|
async def on_session_resumed(self, event):
|
||||||
self.send_presence()
|
self.send_presence()
|
||||||
|
|
Loading…
Reference in a new issue