diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-04-11 19:20:40 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-04-11 19:20:40 +0300 |
commit | 92a2428865dfde80af6f9ffba0f59567b63230b6 (patch) | |
tree | 1a63c5daea071abc12669e9b10cf6db7255b3fba /interface | |
parent | ff7ee333a1028850337aa332532cbc23c7bdde14 (diff) |
Allow clicking images and load images from cache
Diffstat (limited to 'interface')
-rw-r--r-- | interface/matrix.go | 3 | ||||
-rw-r--r-- | interface/ui.go | 2 |
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) |