aboutsummaryrefslogtreecommitdiff
path: root/interface/ui.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2019-06-16 15:18:25 +0300
committerTulir Asokan <tulir@maunium.net>2019-06-16 15:18:25 +0300
commit8b87809ac1cae1263d3591a1b9b5b88c944034d8 (patch)
tree25c6421dc5da1b96d2d7804eccad94ed8a2ee1a1 /interface/ui.go
parentd3c18788dda5c2205a858c99afc75acc46c7ed33 (diff)
parent1ea6ba026aab8b9d3e66681c97043b5806ef4971 (diff)
Merge branch 'break-things-again'
Diffstat (limited to 'interface/ui.go')
-rw-r--r--interface/ui.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/interface/ui.go b/interface/ui.go
index 781f803..ad2458a 100644
--- a/interface/ui.go
+++ b/interface/ui.go
@@ -43,14 +43,14 @@ 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)
+ Bump(room *rooms.Room)
UpdateTags(room *rooms.Room)
SetTyping(roomID string, users []string)
NotifyMessage(room *rooms.Room, message Message, should pushrules.PushActionArrayShould)
- InitialSyncDone()
}
type RoomView interface {
@@ -68,13 +68,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)
}