diff --git a/packages/uiweb/src/lib/components/chat/ChatViewBubble/ChatViewBubble.tsx b/packages/uiweb/src/lib/components/chat/ChatViewBubble/ChatViewBubble.tsx index 8c929dcb3..49a4afe39 100644 --- a/packages/uiweb/src/lib/components/chat/ChatViewBubble/ChatViewBubble.tsx +++ b/packages/uiweb/src/lib/components/chat/ChatViewBubble/ChatViewBubble.tsx @@ -19,7 +19,7 @@ import { IMessagePayload, TwitterFeedReturnType } from '../exportedTypes'; const SenderMessageAddress = ({ chat }: { chat: IMessagePayload }) => { const { user } = useContext(ChatDataContext); const theme = useContext(ThemeContext); - return chat.fromCAIP10 == user?.account ? ( + return chat.fromCAIP10 !== user?.account ? ( { justifyContent="start" alignItems="start" > - {chat.fromCAIP10 == user?.account && ( + {chat.fromCAIP10 !== user?.account && (
{pfp && ( { + const { user } = useChatData(); const theme = useContext(ThemeContext); return (
- {isGroup && } + {isGroup && chat?.fromCAIP10 !== user?.account && }
- {isGroup && } + {isGroup && chat?.fromCAIP10 !== user?.account && } {children}
@@ -108,7 +109,6 @@ const MessageWrapper = ({ const MessageCard = ({ chat, position, isGroup }: { chat: IMessagePayload; position: number; isGroup: boolean }) => { const theme = useContext(ThemeContext); const time = moment(chat.timestamp).format('hh:mm a'); - console.debug(position); return ( { const { user } = useChatData(); - const position = pCAIP10ToWallet(decryptedMessagePayload.fromDID).toLowerCase() !== pCAIP10ToWallet(user?.account!)?.toLowerCase() ? 0 @@ -330,7 +329,6 @@ export const ChatViewBubble = ({ const { tweetId, messageType }: TwitterFeedReturnType = checkTwitterUrl({ message: decryptedMessagePayload?.messageContent, }); - console.debug(user, position, 'position'); if (messageType === 'TwitterFeedLink') { decryptedMessagePayload.messageType = 'TwitterFeedLink'; }