From 8a3fbc24ab430443b89dfa45e726ab96ad3ea1ec Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 16 May 2018 20:09:09 +0300 Subject: Handle m.direct and m.receipt events Fixes #12 Fixes #45 --- interface/matrix.go | 1 + interface/ui.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'interface') 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 -- cgit v1.2.3