Avoid double briar

main
Bob Mottram 2022-02-15 16:46:01 +00:00
parent d156c8fd06
commit 178b517804
1 changed files with 2 additions and 0 deletions

2
pgp.py
View File

@ -663,6 +663,8 @@ def actor_to_vcard(actor: {}) -> str:
vcard_str += 'IMPP:matrix:' + matrix_address + '\n' vcard_str += 'IMPP:matrix:' + matrix_address + '\n'
briar_address = get_briar_address(actor) briar_address = get_briar_address(actor)
if briar_address: if briar_address:
if briar_address.startswith('briar:'):
briar_address = briar_address.split('briar:')[1]
vcard_str += 'IMPP:briar:' + briar_address + '\n' vcard_str += 'IMPP:briar:' + briar_address + '\n'
cwtch_address = get_cwtch_address(actor) cwtch_address = get_cwtch_address(actor)
if cwtch_address: if cwtch_address: