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

Method JudgeShouldAutoJoin

userapi/internal/api.go:926–938  ·  view source on GitHub ↗
(ctx context.Context, inviter, invitee string)

Source from the content-addressed store, hash-verified

924}
925
926func (a *UserInternalAPI) JudgeShouldAutoJoin(ctx context.Context, inviter, invitee string) (bool, error) {
927
928 // 1,limit_mode fee() | any() | list())
929 inviterLocal, _, err := gomatrixserverlib.SplitID('@', inviter)
930 if err != nil {
931 return false, err
932 }
933 inviteeLocal, _, err := gomatrixserverlib.SplitID('@', invitee)
934 if err != nil {
935 return false, err
936 }
937 return new_feature.JudgeShouldAutoJoin(inviterLocal, inviteeLocal)
938}
939
940const pushRulesAccountDataType = "m.push_rules"

Callers

nothing calls this directly

Calls 1

JudgeShouldAutoJoinMethod · 0.65

Tested by

no test coverage detected