mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 00:20:48 +00:00
add support for custom display names in network visualiser
This commit is contained in:
parent
0611bca167
commit
000b515442
1 changed files with 2 additions and 2 deletions
|
|
@ -315,7 +315,7 @@ export default {
|
|||
|
||||
if(announce.aspect === "lxmf.delivery"){
|
||||
|
||||
const name = announce.display_name;
|
||||
const name = announce.custom_display_name ?? announce.display_name;
|
||||
|
||||
node.shape = "circularImage";
|
||||
node.image = entry.hops === 1 ? "/assets/images/network-visualiser/user_1hop.png" : "/assets/images/network-visualiser/user.png";
|
||||
|
|
@ -334,7 +334,7 @@ export default {
|
|||
|
||||
if(announce.aspect === "nomadnetwork.node"){
|
||||
|
||||
const name = announce.display_name;
|
||||
const name = announce.custom_display_name ?? announce.display_name;
|
||||
|
||||
node.shape = "circularImage";
|
||||
node.image = entry.hops === 1 ? "/assets/images/network-visualiser/server_1hop.png" : "/assets/images/network-visualiser/server.png";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue