From 89646b5a4614d2f872a49693ca03ac9df59d0384 Mon Sep 17 00:00:00 2001 From: nxshock Date: Mon, 22 Jul 2019 19:27:23 +0500 Subject: [PATCH] Add todo for leaving room --- internal/backends/memory/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }