mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-24 11:22:20 +00:00
Add todo for leaving room
This commit is contained in:
parent
f5c5106b61
commit
89646b5a46
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user