Fix portal avatar updating
This commit is contained in:
@@ -394,7 +394,7 @@ class Portal:
|
|||||||
file = await util.transfer_file_to_matrix(self.db, user.client, self.main_intent,
|
file = await util.transfer_file_to_matrix(self.db, user.client, self.main_intent,
|
||||||
photo)
|
photo)
|
||||||
if file:
|
if file:
|
||||||
await self.main_intent.set_avatar(file.mxc)
|
await self.main_intent.set_room_avatar(self.mxid, file.mxc)
|
||||||
self.photo_id = photo_id
|
self.photo_id = photo_id
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user