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

Method QuerySharedUsers

roomserver/api/api_trace.go:336–340  ·  view source on GitHub ↗

QuerySharedUsers returns a list of users who share at least 1 room in common with the given user.

(ctx context.Context, req *QuerySharedUsersRequest, res *QuerySharedUsersResponse)

Source from the content-addressed store, hash-verified

334
335// QuerySharedUsers returns a list of users who share at least 1 room in common with the given user.
336func (t *RoomserverInternalAPITrace) QuerySharedUsers(ctx context.Context, req *QuerySharedUsersRequest, res *QuerySharedUsersResponse) error {
337 err := t.Impl.QuerySharedUsers(ctx, req, res)
338 util.GetLogger(ctx).WithError(err).Infof("QuerySharedUsers req=%+v res=%+v", js(req), js(res))
339 return err
340}
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 {

Callers

nothing calls this directly

Calls 3

InfofMethod · 0.80
jsFunction · 0.70
QuerySharedUsersMethod · 0.65

Tested by

no test coverage detected