Add todo for leaving room

This commit is contained in:
nxshock 2019-07-22 19:27:23 +05:00
parent f5c5106b61
commit 89646b5a46

View File

@ -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
}
}