aboutsummaryrefslogtreecommitdiff
path: root/interface/matrix.go
diff options
context:
space:
mode:
Diffstat (limited to 'interface/matrix.go')
-rw-r--r--interface/matrix.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/interface/matrix.go b/interface/matrix.go
index 08b3d61..0538df9 100644
--- a/interface/matrix.go
+++ b/interface/matrix.go
@@ -33,14 +33,14 @@ type MatrixContainer interface {
Logout()
SendPreferencesToMatrix()
- SendMessage(roomID, msgtype, message string) (string, error)
- SendMarkdownMessage(roomID, msgtype, message string) (string, error)
+ SendMessage(roomID string, msgtype gomatrix.MessageType, message string) (string, error)
+ SendMarkdownMessage(roomID string, msgtype gomatrix.MessageType, message string) (string, error)
SendTyping(roomID string, typing bool)
MarkRead(roomID, eventID string)
JoinRoom(roomID, server string) (*rooms.Room, error)
LeaveRoom(roomID string) error
- GetHistory(roomID, prevBatch string, limit int) ([]gomatrix.Event, string, error)
+ GetHistory(roomID, prevBatch string, limit int) ([]*gomatrix.Event, string, error)
GetRoom(roomID string) *rooms.Room
Download(mxcURL string) ([]byte, string, string, error)