mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 00:20:48 +00:00
fix clicking lxmf urls in nomadnet browser
This commit is contained in:
parent
a94ce1ad50
commit
9229b8987b
2 changed files with 10 additions and 7 deletions
|
|
@ -78,12 +78,14 @@ export default {
|
|||
|
||||
},
|
||||
methods: {
|
||||
async onComposeNewMessage() {
|
||||
async onComposeNewMessage(destinationHash) {
|
||||
|
||||
// ask for destination address
|
||||
const destinationHash = await DialogUtils.prompt("Enter LXMF Address");
|
||||
if(!destinationHash){
|
||||
return;
|
||||
// ask for destination address if not provided
|
||||
if(destinationHash == null){
|
||||
const destinationHash = await DialogUtils.prompt("Enter LXMF Address");
|
||||
if(!destinationHash){
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// attempt to find existing peer so we can show their name
|
||||
|
|
|
|||
|
|
@ -107,9 +107,9 @@
|
|||
<script>
|
||||
|
||||
import DialogUtils from "../../js/DialogUtils";
|
||||
import Utils from "../../js/Utils";
|
||||
import WebSocketConnection from "../../js/WebSocketConnection";
|
||||
import NomadNetworkSidebar from "./NomadNetworkSidebar.vue";
|
||||
import GlobalEmitter from "../../js/GlobalEmitter";
|
||||
|
||||
export default {
|
||||
name: 'NomadNetworkPage',
|
||||
|
|
@ -433,7 +433,8 @@ export default {
|
|||
if(url.startsWith("lxmf@")){
|
||||
const destinationHash = url.replace("lxmf@", "");
|
||||
if(destinationHash.length === 32){
|
||||
this.openLXMFConversation(destinationHash);
|
||||
await this.$router.push({ name: "messages" });
|
||||
GlobalEmitter.emit("compose-new-message", destinationHash);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue