Add room users method

This commit is contained in:
nxshock 2019-07-22 21:02:53 +05:00
parent f7fd9f190e
commit 1951586cdc
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ type Backend interface {
type Room interface {
ID() string
Creator() User
Users() User
Users() []User
AliasName() string
Name() string
Topic() string

View File

@ -51,11 +51,11 @@ func (room *Room) Topic() string {
return room.topic
}
func (room *Room) Users() internal.User {
func (room *Room) Users() []internal.User {
room.mutex.RLock()
defer room.mutex.RUnlock()
return nil // TODO: implement
return room.joined
}
func (room *Room) Events() []rooms.Event {