mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-25 03:42:20 +00:00
Add room users method
This commit is contained in:
parent
f7fd9f190e
commit
1951586cdc
@ -17,7 +17,7 @@ type Backend interface {
|
||||
type Room interface {
|
||||
ID() string
|
||||
Creator() User
|
||||
Users() User
|
||||
Users() []User
|
||||
AliasName() string
|
||||
Name() string
|
||||
Topic() string
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user