fixing remote conversation header

This commit is contained in:
Roland Osborne 2023-03-06 14:20:28 -08:00
parent 417f35e418
commit cfb040be60
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,8 @@ export function getChannelSubjectLogo(cardId, profileGuid, channel, cards, cardI
const contacts = [];
if (cardId) {
contacts.push(cardId);
const contact = cards.get(cardId)?.card;
contacts.push(contact);
}
if (channel?.detail?.members?.length) {
channel.detail.members.forEach(guid => {

View File

@ -70,7 +70,7 @@ export function useConversation() {
useEffect(() => {
const loaded = conversation.state.loaded;
const cardId = conversation.state.card?.cardId;
const cardId = conversation.state.card?.card?.cardId;
const profileGuid = profile.state.identity?.guid;
const channel = conversation.state.channel;
const cards = card.state.cards;