MCPcopy Create free account
hub / github.com/daodst/chat / MSC2946Spaces

Method MSC2946Spaces

federationapi/internal/federationclient.go:168–180  ·  view source on GitHub ↗
(
	ctx context.Context, s gomatrixserverlib.ServerName, roomID string, suggestedOnly bool,
)

Source from the content-addressed store, hash-verified

166}
167
168func (a *FederationInternalAPI) MSC2946Spaces(
169 ctx context.Context, s gomatrixserverlib.ServerName, roomID string, suggestedOnly bool,
170) (res gomatrixserverlib.MSC2946SpacesResponse, err error) {
171 ctx, cancel := context.WithTimeout(ctx, time.Minute)
172 defer cancel()
173 ires, err := a.doRequestIfNotBlacklisted(s, func() (interface{}, error) {
174 return a.federation.MSC2946Spaces(ctx, s, roomID, suggestedOnly)
175 })
176 if err != nil {
177 return res, err
178 }
179 return ires.(gomatrixserverlib.MSC2946SpacesResponse), nil
180}

Callers

nothing calls this directly

Calls 2

MSC2946SpacesMethod · 0.65

Tested by

no test coverage detected