Skip to content

Commit 83f767b

Browse files
committed
feat: add sameer code things for if merge dont go the things already have
1 parent 4eb9409 commit 83f767b

3 files changed

Lines changed: 13 additions & 9 deletions

File tree

frontend/app/session/page.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
Users,
2222
Clock,
2323
} from 'lucide-react';
24+
import Link from 'next/link';
2425

2526
type PermissionState = 'idle' | 'requesting' | 'granted' | 'denied';
2627
type CallEndReason =
@@ -445,11 +446,8 @@ function VideoCallInner() {
445446
});
446447
cleanup();
447448
setSelfLeft(true);
448-
setTimeout(() => router.push('/home'), 2000);
449449
};
450450

451-
// ── Screens ───────────────────────────────────────────────────────────────
452-
453451
if (selfLeft) {
454452
return (
455453
<div className="min-h-screen w-full flex items-center justify-center bg-[#0a0a0b]">
@@ -511,14 +509,21 @@ function VideoCallInner() {
511509
onClick={() => router.push('/home')}
512510
className="group inline-flex items-center gap-2.5 px-6 py-3 rounded-full border border-white/12 text-white/70 text-sm font-light tracking-wide hover:border-white/25 hover:text-white transition-all duration-300"
513511
>
514-
<Home className="w-4 h-4 group-hover:translate-x-[-2px] transition-transform duration-300" />
512+
<Home className="w-4 h-4 group-hover:-translate-x-0.5 transition-transform duration-300" />
515513
Go to Home
516514
</button>
515+
<div className="-mt-6">
516+
<Link
517+
href={`/report?userId=${peerId}`}
518+
className="text-white/40 text-xs font-mono hover:text-white/70 transition-colors underline underline-offset-4"
519+
>
520+
Report User
521+
</Link>
522+
</div>
517523
</div>
518524
</div>
519525
);
520526
}
521-
522527
if (isDuplicateTab) {
523528
return (
524529
<div className="min-h-screen w-full flex items-center justify-center bg-[#0a0a0b] px-4">
@@ -654,7 +659,6 @@ function VideoCallInner() {
654659
<span className="text-white/15 text-xs font-mono">{iceState}</span>
655660
</header>
656661

657-
658662
<section className="flex-1 relative h-full overflow-hidden">
659663
<video
660664
ref={remoteVideoRef}

services/auth-service/src/controllers/authController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,4 +244,4 @@ export const resetPassword = async (req: Request, res: Response) => {
244244
const { token, newPassword } = req.body;
245245
await authService.resetPassword(token, newPassword);
246246
res.json({ message: 'Password updated successfully' });
247-
};
247+
};

services/auth-service/src/services/googleAuth.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ export const googleAuthService = {
6767
return {
6868
accessToken,
6969
refreshToken,
70-
role:user.role,
71-
userId
70+
role: user.role,
71+
userId,
7272
};
7373
},
7474
};

0 commit comments

Comments
 (0)