From fafc7f55be8c206d52de72522645091dd7a73b03 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 22 Apr 2018 23:26:56 +0300 Subject: Remove impossible check and improve things for testing --- matrix/rooms/member.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'matrix/rooms') 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) -- cgit v1.2.3