From 178b51780412e5b260d8a19d6b35aa93b6fbc544 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 15 Feb 2022 16:46:01 +0000 Subject: [PATCH] Avoid double briar --- pgp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pgp.py b/pgp.py index 940d7a85a..817f93ef0 100644 --- a/pgp.py +++ b/pgp.py @@ -663,6 +663,8 @@ def actor_to_vcard(actor: {}) -> str: vcard_str += 'IMPP:matrix:' + matrix_address + '\n' briar_address = get_briar_address(actor) if briar_address: + if briar_address.startswith('briar:'): + briar_address = briar_address.split('briar:')[1] vcard_str += 'IMPP:briar:' + briar_address + '\n' cwtch_address = get_cwtch_address(actor) if cwtch_address: