aboutsummaryrefslogtreecommitdiff
path: root/interface
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-05-16 20:09:09 +0300
committerTulir Asokan <tulir@maunium.net>2018-05-16 20:51:43 +0300
commit8a3fbc24ab430443b89dfa45e726ab96ad3ea1ec (patch)
tree7aab3b58b1d4119c752f8fd549c14e587da15279 /interface
parentc88801a65782d28184aa73a8d25ed3e8a8641f82 (diff)
Handle m.direct and m.receipt events
Fixes #12 Fixes #45
Diffstat (limited to 'interface')
-rw-r--r--interface/matrix.go1
-rw-r--r--interface/ui.go2
2 files changed, 2 insertions, 1 deletions
diff --git a/interface/matrix.go b/interface/matrix.go
index 6430686..8b450a9 100644
--- a/interface/matrix.go
+++ b/interface/matrix.go
@@ -35,6 +35,7 @@ type MatrixContainer interface {
SendMessage(roomID, msgtype, message string) (string, error)
SendMarkdownMessage(roomID, msgtype, message string) (string, error)
SendTyping(roomID string, typing bool)
+ MarkRead(roomID, eventID string)
JoinRoom(roomID, server string) (*rooms.Room, error)
LeaveRoom(roomID string) error
diff --git a/interface/ui.go b/interface/ui.go
index b69f048..6023953 100644
--- a/interface/ui.go
+++ b/interface/ui.go
@@ -46,7 +46,7 @@ type MainView interface {
SetRooms(rooms map[string]*rooms.Room)
SaveAllHistory()
- UpdateTags(room *rooms.Room, newTags []rooms.RoomTag)
+ UpdateTags(room *rooms.Room)
SetTyping(roomID string, users []string)
ParseEvent(roomView RoomView, evt *gomatrix.Event) Message