Skip to content
Snippets Groups Projects
Commit a2e1d162 authored by Tulir Asokan's avatar Tulir Asokan :cat2:
Browse files

Use join_room instead of ensure_joined for custom puppet after creating portal. Fixes #68

parent f8540b3a
No related branches found
No related tags found
No related merge requests found
......@@ -439,7 +439,11 @@ class Portal(BasePortal):
else:
puppet = p.Puppet.get_by_custom_mxid(source.mxid)
if puppet:
await puppet.intent.ensure_joined(self.mxid)
try:
await puppet.intent.join_room_by_id(self.mxid)
except MatrixError:
self.log.debug("Failed to join custom puppet into newly created portal",
exc_info=True)
in_community = await source._community_helper.add_room(source._community_id, self.mxid)
DBUserPortal(user=source.fbid, portal=self.fbid, portal_receiver=self.fb_receiver,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment