fix: incoming call auto-dismiss, deleted message text, PiP drag cleanup

This commit is contained in:
root
2026-05-15 16:00:17 -04:00
parent 1ab38281f3
commit bf544ebc84
2 changed files with 8 additions and 5 deletions
+7
View File
@@ -128,6 +128,13 @@ function IncomingCall({ dm, info, onIgnore, onAnswer, onReject }: IncomingCallPr
}
}, [playSound, info.notificationType]);
useEffect(() => {
const remaining = info.senderTs + info.lifetime - Date.now();
if (remaining <= 0) { onIgnore(); return; }
const id = setTimeout(onIgnore, remaining);
return () => clearTimeout(id);
}, [info.senderTs, info.lifetime, onIgnore]);
return (
<>
<Overlay open backdrop={<OverlayBackdrop />}>
@@ -8,11 +8,7 @@ export const MessageDeletedContent = as<'div', { children?: never; reason?: stri
({ reason, ...props }, ref) => (
<Box as="span" alignItems="Center" gap="100" style={warningStyle} {...props} ref={ref}>
<Icon size="50" src={Icons.Delete} />
{reason ? (
<i>{reason}</i>
) : (
<i>This message has been deleted</i>
)}
<i>{reason ? `This message has been deleted — ${reason}` : 'This message has been deleted'}</i>
</Box>
)
);