diff --git a/net/web/src/session/cards/useCards.hook.js b/net/web/src/session/cards/useCards.hook.js index 10460ec2..b09e6dbf 100644 --- a/net/web/src/session/cards/useCards.hook.js +++ b/net/web/src/session/cards/useCards.hook.js @@ -23,7 +23,6 @@ export function useCards() { } useEffect(() => { - const contacts = Array.from(card.state.cards.values()).map(item => { const profile = item?.data?.cardProfile; const detail = item?.data?.cardDetail; diff --git a/net/web/src/session/channels/useChannels.hook.js b/net/web/src/session/channels/useChannels.hook.js index 53887a9e..12269421 100644 --- a/net/web/src/session/channels/useChannels.hook.js +++ b/net/web/src/session/channels/useChannels.hook.js @@ -182,11 +182,9 @@ export function useChannels() { useEffect(() => { const login = store.state['login:timestamp']; const conversations = new Map(); - const { sealKey } = account.state; card.state.cards.forEach((cardValue, cardId) => { cardValue.channels.forEach((channelValue, channelId) => { const key = `${channelId}::${cardId}`; - const { detailRevision, topicRevision } = channelValue.data; let item = channels.current.get(key); if (!item) { item = { cardId, channelId }; @@ -196,6 +194,7 @@ export function useChannels() { syncChannelSummary(item, channelValue); const revision = store.state[key]; + const topicRevision = channelValue.data?.topicRevision; if (login && item.updated && item.updated > login && topicRevision !== revision) { item.updatedFlag = true; } @@ -207,7 +206,6 @@ export function useChannels() { }); channel.state.channels.forEach((channelValue, channelId) => { const key = `${channelId}::${undefined}`; - const { detailRevision, topicRevision } = channelValue.data; let item = channels.current.get(key); if (!item) { item = { channelId }; @@ -216,6 +214,7 @@ export function useChannels() { syncChannelSummary(item, channelValue); const revision = store.state[key]; + const topicRevision = channelValue.data?.topicRevision; if (login && item.updated && item.updated > login && topicRevision !== revision) { item.updatedFlag = true; } diff --git a/net/web/src/session/listing/Listing.jsx b/net/web/src/session/listing/Listing.jsx index 0ebd458e..5415c366 100644 --- a/net/web/src/session/listing/Listing.jsx +++ b/net/web/src/session/listing/Listing.jsx @@ -6,6 +6,7 @@ import { ListingItem } from './listingItem/ListingItem'; export function Listing({ closeListing, openContact }) { + const [ modal, modalContext ] = Modal.useModal(); const { state, actions } = useListing(); const getListing = async () => { @@ -14,7 +15,7 @@ export function Listing({ closeListing, openContact }) { } catch(err) { console.log(err); - Modal.error({ + modal.error({ title: 'Communication Error', content: 'Please confirm your server name.', }); @@ -23,6 +24,7 @@ export function Listing({ closeListing, openContact }) { return ( + { modalContext }