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

Method QueryKnownUsers

roomserver/api/api_trace.go:343–347  ·  view source on GitHub ↗

QueryKnownUsers returns a list of users that we know about from our joined rooms.

(ctx context.Context, req *QueryKnownUsersRequest, res *QueryKnownUsersResponse)

Source from the content-addressed store, hash-verified

341
342// QueryKnownUsers returns a list of users that we know about from our joined rooms.
343func (t *RoomserverInternalAPITrace) QueryKnownUsers(ctx context.Context, req *QueryKnownUsersRequest, res *QueryKnownUsersResponse) error {
344 err := t.Impl.QueryKnownUsers(ctx, req, res)
345 util.GetLogger(ctx).WithError(err).Infof("QueryKnownUsers req=%+v res=%+v", js(req), js(res))
346 return err
347}
348
349// QueryServerBannedFromRoom returns whether a server is banned from a room by server ACLs.
350func (t *RoomserverInternalAPITrace) QueryServerBannedFromRoom(ctx context.Context, req *QueryServerBannedFromRoomRequest, res *QueryServerBannedFromRoomResponse) error {

Callers

nothing calls this directly

Calls 3

InfofMethod · 0.80
jsFunction · 0.70
QueryKnownUsersMethod · 0.65

Tested by

no test coverage detected