(ctx context.Context, req *api.QueryAuthChainRequest, res *api.QueryAuthChainResponse)
| 754 | } |
| 755 | |
| 756 | func (r *Queryer) QueryAuthChain(ctx context.Context, req *api.QueryAuthChainRequest, res *api.QueryAuthChainResponse) error { |
| 757 | chain, err := GetAuthChain(ctx, r.DB.EventsFromIDs, req.EventIDs) |
| 758 | if err != nil { |
| 759 | return err |
| 760 | } |
| 761 | hchain := make([]*gomatrixserverlib.HeaderedEvent, len(chain)) |
| 762 | for i := range chain { |
| 763 | hchain[i] = chain[i].Headered(chain[i].Version()) |
| 764 | } |
| 765 | res.AuthChain = hchain |
| 766 | return nil |
| 767 | } |
| 768 | |
| 769 | // nolint:gocyclo |
| 770 | func (r *Queryer) QueryRestrictedJoinAllowed(ctx context.Context, req *api.QueryRestrictedJoinAllowedRequest, res *api.QueryRestrictedJoinAllowedResponse) error { |
nothing calls this directly
no test coverage detected