diff options
Diffstat (limited to 'matrix/rooms')
-rw-r--r-- | matrix/rooms/member.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/matrix/rooms/member.go b/matrix/rooms/member.go index 8fd84e9..0f7133a 100644 --- a/matrix/rooms/member.go +++ b/matrix/rooms/member.go @@ -45,12 +45,6 @@ type Member struct { // eventToRoomMember converts a m.room.member state event into a Member object. func eventToRoomMember(userID string, event *gomatrix.Event) *Member { - if event == nil { - return &Member{ - UserID: userID, - Membership: MembershipLeave, - } - } membership, _ := event.Content["membership"].(string) avatarURL, _ := event.Content["avatar_url"].(string) |