From 9d132d328bbf3cdcb66d34538583a96268b6dd09 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 1 Mar 2020 00:33:37 +0200 Subject: Add support for replying and reacting to messages --- interface/matrix.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'interface') diff --git a/interface/matrix.go b/interface/matrix.go index 0b1278d..34e8dda 100644 --- a/interface/matrix.go +++ b/interface/matrix.go @@ -23,6 +23,11 @@ import ( "maunium.net/go/gomuks/matrix/rooms" ) +type Relation struct { + Type mautrix.RelationType + Event *event.Event +} + type MatrixContainer interface { Client() *mautrix.Client InitClient() error @@ -35,7 +40,7 @@ type MatrixContainer interface { Logout() SendPreferencesToMatrix() - PrepareMarkdownMessage(roomID string, msgtype mautrix.MessageType, message string, edit *event.Event) *event.Event + PrepareMarkdownMessage(roomID string, msgtype mautrix.MessageType, message string, relation *Relation) *event.Event SendEvent(evt *event.Event) (string, error) SendTyping(roomID string, typing bool) MarkRead(roomID, eventID string) -- cgit v1.2.3