Skip to content

Commit

Permalink
fix: is own message on broadcast receipts
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Marins committed Apr 18, 2022
1 parent ad1f974 commit 88d4f47
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import MessageBlock from '../../../blocks/MessageBlock';
import MessageLocation from '../../../location/MessageLocation';
import { useMessageActions, useMessageOembedIsEnabled, useMessageRunActionLink } from '../../contexts/MessageContext';
import { useMessageListShowReadReceipt } from '../contexts/MessageListContext';
import { isOwnUserMessage } from '../lib/isOwnUserMessage';
import EncryptedMessageRender from './EncryptedMessageRender';
import ReactionsList from './MessageReactionsList';
import ReadReceipt from './MessageReadReceipt';
Expand Down Expand Up @@ -104,7 +105,7 @@ const MessageContent: FC<{ message: IMessage; sequential: boolean; subscription?

{message.location && <MessageLocation location={message.location} />}

{broadcast && user.username && (
{broadcast && !!user.username && !isOwnUserMessage(message, subscription) && (
<BroadcastMetric replyBroadcast={(): void => replyBroadcast(message)} mid={message._id} username={user.username} />
)}

Expand Down

0 comments on commit 88d4f47

Please sign in to comment.