rooms: Fix join event message creation.

This commit is contained in:
poljar (Damir Jelić) 2018-03-19 12:33:45 +01:00
parent ee321b21d9
commit a724d7fe58

View file

@ -221,8 +221,9 @@ class RoomInfo():
try:
message = RoomMembershipMessage(
event.event_id, event.sender, event.age,
event.event_id, event.sender, event.timestamp,
"has joined", "join")
return event, message
except AttributeError:
return event, None