fixing connection request error

This commit is contained in:
balzack 2023-10-06 23:14:56 -07:00
parent d02130679b
commit 15bd17dd5f

View File

@ -24,7 +24,6 @@ export function useContact(contact, back) {
busy: false, busy: false,
offsync: false, offsync: false,
strings: getLanguageStrings(), strings: getLanguageStrings(),
imageSource: null, imageSource: null,
imageWidth: null, imageWidth: null,
@ -63,7 +62,7 @@ export function useContact(contact, back) {
const username = `${handle}/${node}` const username = `${handle}/${node}`
const imageSource = imageSet ? { uri: card.actions.getCardImageUrl(cardId) } : avatar; const imageSource = imageSet ? { uri: card.actions.getCardImageUrl(cardId) } : avatar;
const status = offsync ? 'offsync' : detail.status; const status = offsync ? 'offsync' : detail.status;
updateState({ name, handle, node: server, location, description, imageSource, username, cardId, guid, status }); updateState({ name, handle, node: host, location, description, imageSource, username, cardId, guid, status });
} }
else { else {
const { guid, handle, node, name, location, description, imageSet } = contact || {}; const { guid, handle, node, name, location, description, imageSet } = contact || {};