aboutsummaryrefslogtreecommitdiff
path: root/interface
diff options
context:
space:
mode:
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)