rooms: Fix the nick in quit messages.

This commit is contained in:
poljar (Damir Jelić) 2018-03-06 16:02:46 +01:00
parent a1b6087bf4
commit 57718f82e9

View file

@ -144,7 +144,7 @@ class RoomInfo():
msg = ("has left" if event.sender == event.leaving_user else
"has been kicked")
message = RoomMembershipMessage(
event.event_id, event.sender, event.age, msg, "quit")
event.event_id, event.leaving_user, event.age, msg, "quit")
return event, message
except AttributeError:
return event, None