aboutsummaryrefslogtreecommitdiff
path: root/interface/matrix.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-11-14 00:00:35 +0200
committerTulir Asokan <tulir@maunium.net>2018-11-14 00:00:35 +0200
commitba387764ca1590625d349e74eb8a8a64d1849b67 (patch)
treebc8f02156a63eac99dcddaed38e45b7c312b40c0 /interface/matrix.go
parentcfb2cc057c32330be0ca0a68cfbd245cb2b8e31b (diff)
Fix things
Diffstat (limited to 'interface/matrix.go')
-rw-r--r--interface/matrix.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/interface/matrix.go b/interface/matrix.go
index 0538df9..01f224e 100644
--- a/interface/matrix.go
+++ b/interface/matrix.go
@@ -17,12 +17,12 @@
package ifc
import (
- "maunium.net/go/gomatrix"
+ "maunium.net/go/mautrix"
"maunium.net/go/gomuks/matrix/rooms"
)
type MatrixContainer interface {
- Client() *gomatrix.Client
+ Client() *mautrix.Client
InitClient() error
Initialized() bool
@@ -33,14 +33,14 @@ type MatrixContainer interface {
Logout()
SendPreferencesToMatrix()
- SendMessage(roomID string, msgtype gomatrix.MessageType, message string) (string, error)
- SendMarkdownMessage(roomID string, msgtype gomatrix.MessageType, message string) (string, error)
+ SendMessage(roomID string, msgtype mautrix.MessageType, message string) (string, error)
+ SendMarkdownMessage(roomID string, msgtype mautrix.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) ([]*mautrix.Event, string, error)
GetRoom(roomID string) *rooms.Room
Download(mxcURL string) ([]byte, string, string, error)