diff options
author | Tulir Asokan <tulir@maunium.net> | 2019-06-15 01:11:51 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2019-06-15 01:11:54 +0300 |
commit | a55ea42d7f5900bd5fc8fad047040c7865824f33 (patch) | |
tree | 2b5ee3f3087751471903a21e99ca7a68fc97b928 /interface | |
parent | a4ac699c930e783175b6451a5becd7b70835aefb (diff) |
Unbreak things
Diffstat (limited to 'interface')
-rw-r--r-- | interface/gomuks.go | 2 | ||||
-rw-r--r-- | interface/matrix.go | 1 | ||||
-rw-r--r-- | interface/ui.go | 8 |
3 files changed, 4 insertions, 7 deletions
diff --git a/interface/gomuks.go b/interface/gomuks.go index f2565fb..5937a6b 100644 --- a/interface/gomuks.go +++ b/interface/gomuks.go @@ -27,5 +27,5 @@ type Gomuks interface { Config() *config.Config Start() - Stop() + Stop(save bool) } diff --git a/interface/matrix.go b/interface/matrix.go index f312df1..6a1a977 100644 --- a/interface/matrix.go +++ b/interface/matrix.go @@ -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 diff --git a/interface/ui.go b/interface/ui.go index 781f803..48a6007 100644 --- a/interface/ui.go +++ b/interface/ui.go @@ -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) } |