use router url params for navigating to lxmf conversation

This commit is contained in:
liamcottle 2025-01-22 00:10:27 +13:00
commit 1bad77553c

View file

@ -581,8 +581,12 @@ export default {
if(url.startsWith("lxmf@")){
const destinationHash = url.replace("lxmf@", "");
if(destinationHash.length === 32){
await this.$router.push({ name: "messages" });
GlobalEmitter.emit("compose-new-message", destinationHash);
await this.$router.push({
name: "messages",
params: {
destinationHash: destinationHash,
},
});
return;
}
}