aboutsummaryrefslogtreecommitdiff
path: root/internal/caching/cache_space_rooms.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/caching/cache_space_rooms.go')
-rw-r--r--internal/caching/cache_space_rooms.go12
1 files changed, 5 insertions, 7 deletions
diff --git a/internal/caching/cache_space_rooms.go b/internal/caching/cache_space_rooms.go
index 697f9926..100ab902 100644
--- a/internal/caching/cache_space_rooms.go
+++ b/internal/caching/cache_space_rooms.go
@@ -1,18 +1,16 @@
package caching
-import (
- "github.com/matrix-org/gomatrixserverlib"
-)
+import "github.com/matrix-org/gomatrixserverlib/fclient"
type SpaceSummaryRoomsCache interface {
- GetSpaceSummary(roomID string) (r gomatrixserverlib.MSC2946SpacesResponse, ok bool)
- StoreSpaceSummary(roomID string, r gomatrixserverlib.MSC2946SpacesResponse)
+ GetSpaceSummary(roomID string) (r fclient.MSC2946SpacesResponse, ok bool)
+ StoreSpaceSummary(roomID string, r fclient.MSC2946SpacesResponse)
}
-func (c Caches) GetSpaceSummary(roomID string) (r gomatrixserverlib.MSC2946SpacesResponse, ok bool) {
+func (c Caches) GetSpaceSummary(roomID string) (r fclient.MSC2946SpacesResponse, ok bool) {
return c.SpaceSummaryRooms.Get(roomID)
}
-func (c Caches) StoreSpaceSummary(roomID string, r gomatrixserverlib.MSC2946SpacesResponse) {
+func (c Caches) StoreSpaceSummary(roomID string, r fclient.MSC2946SpacesResponse) {
c.SpaceSummaryRooms.Set(roomID, r)
}