diff --git a/net/web/src/session/Session.jsx b/net/web/src/session/Session.jsx
index b165a78f..01af45bc 100644
--- a/net/web/src/session/Session.jsx
+++ b/net/web/src/session/Session.jsx
@@ -35,7 +35,18 @@ export function Session() {
incoming.push(
-
{ label }
+ { ring.name && (
+
{ ring.name }
+ )}
+ { !ring.name && ring.node && (
+
+
{ ring.handle }
+
{ ring.node }
+
+ )}
+ { !ring.name && !ring.node && (
+
{ ring.handle }
+ )}
actions.ignore(ring)} className="ringing-ignore">
actions.decline(ring)} className="ringing-decline">
actions.accept(ring)} className="ringing-accept">
diff --git a/net/web/src/session/conversation/useConversation.hook.js b/net/web/src/session/conversation/useConversation.hook.js
index 89e93147..f2bc332a 100644
--- a/net/web/src/session/conversation/useConversation.hook.js
+++ b/net/web/src/session/conversation/useConversation.hook.js
@@ -188,7 +188,7 @@ export function useConversation(cardId, channelId) {
item.nameSet = true;
}
else {
- item.name = `${identity.handle}@${identity.node}`;
+ item.name = identity.node ? `${identity.handle}@${identity.node}` : identity.handle ? identity.handle : 'unknown';
item.nameSet = false;
}
}
@@ -202,7 +202,7 @@ export function useConversation(cardId, channelId) {
item.nameSet = true;
}
else {
- item.name = `${contact.handle}@${contact.node}`;
+ item.name = contact.node ? `${contact.handle}@${contact.node}` : contact.handle ? contact.handle : 'unknown';
item.nameSet = false;
}
}
diff --git a/net/web/src/session/useSession.hook.js b/net/web/src/session/useSession.hook.js
index 745e9487..dfc7e931 100644
--- a/net/web/src/session/useSession.hook.js
+++ b/net/web/src/session/useSession.hook.js
@@ -164,11 +164,13 @@ export function useSession() {
},
decline: async (call) => {
const { cardId, contactNode, contactToken, callId } = call;
- await ring.actions.decline(cardId, contactNode, contactToken, callId);
+ const node = contactNode ? contactNode : window.location.host;
+ await ring.actions.decline(cardId, node, contactToken, callId);
},
accept: async (call) => {
const { cardId, callId, contactNode, contactToken, calleeToken, iceUrl, iceUsername, icePassword } = call;
- await ring.actions.accept(cardId, callId, contactNode, contactToken, calleeToken, iceUrl, iceUsername, icePassword);
+ const node = contactNode ? contactNode : window.location.host;
+ await ring.actions.accept(cardId, callId, node, contactToken, calleeToken, iceUrl, iceUsername, icePassword);
},
end: async () => {
await ring.actions.end();