Enable lazy loading of members

This commit is contained in:
Tulir Asokan
2020-02-22 00:03:57 +02:00
parent 032a83d70b
commit 442fdac4d5
8 changed files with 104 additions and 49 deletions

View File

@ -43,6 +43,7 @@ type MatrixContainer interface {
LeaveRoom(roomID string) error
CreateRoom(req *mautrix.ReqCreateRoom) (*rooms.Room, error)
FetchMembers(room *rooms.Room) error
GetHistory(room *rooms.Room, limit int) ([]*event.Event, error)
GetEvent(room *rooms.Room, eventID string) (*event.Event, error)
GetRoom(roomID string) *rooms.Room