aboutsummaryrefslogtreecommitdiff
path: root/interface/matrix.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2019-04-05 23:44:17 +0300
committerTulir Asokan <tulir@maunium.net>2019-04-05 23:44:17 +0300
commit7ad2103f8f2c9b7e3d12554634a68db973a05b36 (patch)
treee08c3eb377411bf6954ef24ff9205202f07e7296 /interface/matrix.go
parent535fbbb4f7703845bb25484f6eb67b1389f2dd61 (diff)
Move history storage to matrix package. Fixes #90
Diffstat (limited to 'interface/matrix.go')
-rw-r--r--interface/matrix.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/interface/matrix.go b/interface/matrix.go
index 2f457bf..bfce8b5 100644
--- a/interface/matrix.go
+++ b/interface/matrix.go
@@ -41,7 +41,8 @@ type MatrixContainer interface {
JoinRoom(roomID, server string) (*rooms.Room, error)
LeaveRoom(roomID string) error
- GetHistory(roomID, prevBatch string, limit int) ([]*mautrix.Event, string, error)
+ GetHistory(room *rooms.Room, limit int) ([]*mautrix.Event, error)
+ GetEvent(room *rooms.Room, eventID string) (*mautrix.Event, error)
GetRoom(roomID string) *rooms.Room
Download(mxcURL string) ([]byte, string, string, error)