aboutsummaryrefslogtreecommitdiff
path: root/interface
diff options
context:
space:
mode:
Diffstat (limited to 'interface')
-rw-r--r--interface/matrix.go3
-rw-r--r--interface/ui.go3
2 files changed, 2 insertions, 4 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)
diff --git a/interface/ui.go b/interface/ui.go
index 9091e36..df9d959 100644
--- a/interface/ui.go
+++ b/interface/ui.go
@@ -46,7 +46,6 @@ type MainView interface {
AddRoom(room *rooms.Room)
RemoveRoom(room *rooms.Room)
SetRooms(rooms map[string]*rooms.Room)
- SaveAllHistory()
UpdateTags(room *rooms.Room)
@@ -67,8 +66,6 @@ const (
type RoomView interface {
MxRoom() *rooms.Room
- SaveHistory(dir string) error
- LoadHistory(matrix MatrixContainer, dir string) (int, error)
SetCompletions(completions []string)
SetTyping(users []string)