mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-09 12:11:03 +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 {
|
type Room interface {
|
||||||
ID() string
|
ID() string
|
||||||
Creator() User
|
Creator() User
|
||||||
Users() User
|
Users() []User
|
||||||
AliasName() string
|
AliasName() string
|
||||||
Name() string
|
Name() string
|
||||||
Topic() string
|
Topic() string
|
||||||
|
@ -51,11 +51,11 @@ func (room *Room) Topic() string {
|
|||||||
return room.topic
|
return room.topic
|
||||||
}
|
}
|
||||||
|
|
||||||
func (room *Room) Users() internal.User {
|
func (room *Room) Users() []internal.User {
|
||||||
room.mutex.RLock()
|
room.mutex.RLock()
|
||||||
defer room.mutex.RUnlock()
|
defer room.mutex.RUnlock()
|
||||||
|
|
||||||
return nil // TODO: implement
|
return room.joined
|
||||||
}
|
}
|
||||||
|
|
||||||
func (room *Room) Events() []rooms.Event {
|
func (room *Room) Events() []rooms.Event {
|
||||||
|
Loading…
Reference in New Issue
Block a user