aboutsummaryrefslogtreecommitdiff
path: root/interface
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-11 19:20:40 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-11 19:20:40 +0300
commit92a2428865dfde80af6f9ffba0f59567b63230b6 (patch)
tree1a63c5daea071abc12669e9b10cf6db7255b3fba /interface
parentff7ee333a1028850337aa332532cbc23c7bdde14 (diff)
Allow clicking images and load images from cache
Diffstat (limited to 'interface')
-rw-r--r--interface/matrix.go3
-rw-r--r--interface/ui.go2
2 files changed, 3 insertions, 2 deletions
diff --git a/interface/matrix.go b/interface/matrix.go
index cf011cf..3a1ec14 100644
--- a/interface/matrix.go
+++ b/interface/matrix.go
@@ -34,5 +34,6 @@ type MatrixContainer interface {
LeaveRoom(roomID string) error
GetHistory(roomID, prevBatch string, limit int) ([]gomatrix.Event, string, error)
GetRoom(roomID string) *rooms.Room
- Download(mxcURL string) ([]byte, string, error)
+ Download(mxcURL string) ([]byte, string, string, error)
+ GetCachePath(homeserver, fileID string) string
}
diff --git a/interface/ui.go b/interface/ui.go
index 8d3836d..fed1a73 100644
--- a/interface/ui.go
+++ b/interface/ui.go
@@ -71,7 +71,7 @@ const (
type RoomView interface {
MxRoom() *rooms.Room
SaveHistory(dir string) error
- LoadHistory(dir string) (int, error)
+ LoadHistory(gmx Gomuks, dir string) (int, error)
SetStatus(status string)
SetTyping(users []string)