Sender ID can be @john-doe-ministere_example.gouv.fr:agent.ministere_example.tchap.gouv.fr or @john-doe-ministere_example.gouv.fr:agent.ministere_example.tchap.gouv.fr1 or @john-doe-ministere_example.gouv.fr:agent.ministere_example.tchap.gouv.fr10 if the user recreated his account. This should be taken into account. Better to have a regex for that.
https://github.com/etalab-ia/albert-tchapbot/blob/dev/app/matrix_bot/eventparser.py#L54
Sender ID can be
@john-doe-ministere_example.gouv.fr:agent.ministere_example.tchap.gouv.fr
or@john-doe-ministere_example.gouv.fr:agent.ministere_example.tchap.gouv.fr1
or@john-doe-ministere_example.gouv.fr:agent.ministere_example.tchap.gouv.fr10
if the user recreated his account. This should be taken into account. Better to have a regex for that.