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 ab9b02a243
commit cb2d730cca
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 />}>