diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-04-22 23:26:56 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-04-22 23:59:46 +0300 |
commit | fafc7f55be8c206d52de72522645091dd7a73b03 (patch) | |
tree | 0e16ef638073a49b8e318caf0a1ec0695227bde7 /matrix/rooms | |
parent | ad540e268d207eb4b18447018e1a5d67fac9d45e (diff) |
Remove impossible check and improve things for testing
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) |