fedora-infra / maubot-pretix-invite

A maubot plugin for inviting event participants from the pretix ticketing platform into a matrix room
MIT License
2 stars 0 forks source link

validate matrix IDs using the identity API before trying to invite them #11

Open MoralCode opened 2 weeks ago

MoralCode commented 2 weeks ago

https://spec.matrix.org/v1.10/identity-service-api/#authentication

this may help weed out some smaller edge cases where a matrix account isnt public (i.e. an address on private homeserver, such as the dev environment) and therefore cant really be invited.

That said this should also be taken as a possible signal that a matrix ID may be incorrect, not a hard rule, since some environments (like the fedora dev environment or a testing instance) may be running with their own non-public homeservers and may not be able to use this