diff --git a/internal/backends/memory/user.go b/internal/backends/memory/user.go index c276fd8..37a6761 100644 --- a/internal/backends/memory/user.go +++ b/internal/backends/memory/user.go @@ -121,7 +121,7 @@ func (user *User) LeaveRoom(room internal.Room) *models.ApiError { for i, roomMember := range room.(*Room).joined { if roomMember.ID() == user.ID() { - room.(*Room).joined = append(room.(*Room).joined[:i], room.(*Room).joined[i+1:]...) + room.(*Room).joined = append(room.(*Room).joined[:i], room.(*Room).joined[i+1:]...) // TODO: add event return nil } }