Unbreak things
This commit is contained in:
@ -27,5 +27,5 @@ type Gomuks interface {
|
||||
Config() *config.Config
|
||||
|
||||
Start()
|
||||
Stop()
|
||||
Stop(save bool)
|
||||
}
|
||||
|
@ -45,6 +45,7 @@ type MatrixContainer interface {
|
||||
GetHistory(room *rooms.Room, limit int) ([]*mautrix.Event, error)
|
||||
GetEvent(room *rooms.Room, eventID string) (*mautrix.Event, error)
|
||||
GetRoom(roomID string) *rooms.Room
|
||||
GetOrCreateRoom(roomID string) *rooms.Room
|
||||
|
||||
Download(mxcURL string) ([]byte, string, string, error)
|
||||
GetDownloadURL(homeserver, fileID string) string
|
||||
|
@ -43,14 +43,13 @@ type MainView interface {
|
||||
GetRoom(roomID string) RoomView
|
||||
AddRoom(room *rooms.Room)
|
||||
RemoveRoom(room *rooms.Room)
|
||||
SetRooms(rooms map[string]*rooms.Room)
|
||||
SetRooms(rooms *rooms.RoomCache)
|
||||
|
||||
UpdateTags(room *rooms.Room)
|
||||
|
||||
SetTyping(roomID string, users []string)
|
||||
|
||||
NotifyMessage(room *rooms.Room, message Message, should pushrules.PushActionArrayShould)
|
||||
InitialSyncDone()
|
||||
}
|
||||
|
||||
type RoomView interface {
|
||||
@ -68,13 +67,10 @@ type RoomView interface {
|
||||
|
||||
type Message interface {
|
||||
ID() string
|
||||
TxnID() string
|
||||
SenderID() string
|
||||
Timestamp() time.Time
|
||||
Time() time.Time
|
||||
NotificationSenderName() string
|
||||
NotificationContent() string
|
||||
|
||||
SetState(state mautrix.OutgoingEventState)
|
||||
SetIsHighlight(highlight bool)
|
||||
SetID(id string)
|
||||
}
|
||||
|
Reference in New Issue
Block a user