Skip to content

Commit

Permalink
Fix bug checking for m.room.avatar response in room recreate
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywink committed Jan 15, 2022
1 parent 026a488 commit b861535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bubo/rooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ async def recreate_room(

# Move room avatar
avatar_state = await client.room_get_state_event(room.room_id, "m.room.avatar")
if isinstance(aliases, RoomGetStateEventResponse):
if isinstance(avatar_state, RoomGetStateEventResponse):
await client.room_put_state(
room_id=new_room.room_id,
event_type="m.room.avatar",
Expand Down

0 comments on commit b861535

Please sign in to comment.