aboutsummaryrefslogtreecommitdiff
path: root/interface
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-03-01 00:33:37 +0200
committerTulir Asokan <tulir@maunium.net>2020-03-01 00:33:37 +0200
commit9d132d328bbf3cdcb66d34538583a96268b6dd09 (patch)
treee13d1da87abaa3fc6c9a5e1b5056897c9b659b46 /interface
parent699d0ea4e0f5a2d48a5e41c647cbbfa793983b48 (diff)
Add support for replying and reacting to messages
Diffstat (limited to 'interface')
-rw-r--r--interface/matrix.go7
1 files changed, 6 insertions, 1 deletions
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)