Skip to content

Commit 1318061

Browse files
authored
Merge pull request #1196 from dm3-org/1193-new-msg-layout
1193 new msg layout
2 parents 8710bb9 + 08e2180 commit 1318061

File tree

1 file changed

+4
-0
lines changed
  • packages/messenger-widget/src/components/Message

1 file changed

+4
-0
lines changed

packages/messenger-widget/src/components/Message/Action.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export function Action(props: MessageProps) {
1212
const [isHovered, setIsHovered] = useState(false);
1313

1414
const handleMouseOver = () => {
15+
if (!props.envelop.metadata?.messageHash) {
16+
return;
17+
}
1518
setIsHovered(true);
1619
};
1720

@@ -31,6 +34,7 @@ export function Action(props: MessageProps) {
3134
<div
3235
className={'msg-action-container d-flex pointer-cursor border-radius-3 position-relative'.concat(
3336
' ',
37+
!props.envelop.metadata?.messageHash ? 'invisible' : '',
3438
selectedContact?.contactDetails.account.profile && !isMsgDeleted
3539
? ''
3640
: 'hide-action',

0 commit comments

Comments
 (0)