From ff38d4c239f013a2631a8cadcd928af209d9c194 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Mon, 6 Jan 2025 18:00:57 +1300 Subject: [PATCH] if user provided an address with an "lxmf@" prefix, lets remove that to get the raw destination hash --- src/frontend/components/messages/MessagesPage.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontend/components/messages/MessagesPage.vue b/src/frontend/components/messages/MessagesPage.vue index 42cba71..0310fa4 100644 --- a/src/frontend/components/messages/MessagesPage.vue +++ b/src/frontend/components/messages/MessagesPage.vue @@ -88,6 +88,11 @@ export default { } } + // if user provided an address with an "lxmf@" prefix, lets remove that to get the raw destination hash + if(destinationHash.startsWith("lxmf@")){ + destinationHash = destinationHash.replace("lxmf@", ""); + } + // attempt to find existing peer so we can show their name const existingPeer = this.peers[destinationHash]; if(existingPeer){