Some people at DINUM couldn't use the beta bot because they had a Tchap username with a domain finishing in ministere.gouv.fr1 (when an account is recreated).
After talking with Tchap team, it appears sender ID can be like:
@john.doe-ministere_example.gouv.fr:agent.ministere_example.tchap.gouv.fr
...but also, when the user has recreated an account:
https://github.com/etalab-ia/albert-tchapbot/blob/dev/app/matrix_bot/eventparser.py#L54
Some people at DINUM couldn't use the beta bot because they had a Tchap username with a domain finishing in
ministere.gouv.fr1
(when an account is recreated).After talking with Tchap team, it appears sender ID can be like:
@john.doe-ministere_example.gouv.fr:agent.ministere_example.tchap.gouv.fr
...but also, when the user has recreated an account:@john.doe-ministere_example.gouv.fr1:agent.ministere_example.tchap.gouv.fr
@john.doe-ministere_example.gouv.fr10:agent.ministere_example.tchap.gouv.fr
So the rule should take this into account. Better to write a proper regex for this.