This commit is contained in:
zadit
2024-10-17 00:15:35 +07:00
parent 4dd12f3835
commit 8f50909e1a
23 changed files with 415 additions and 177 deletions

View File

@@ -142,20 +142,6 @@ function App() {
setGuestSides(sessionLeft.guestSideList);
};
// const checkNotifications = async (userId) => {
// try {
// const permissionGranted =
// await NotificationService.requestNotificationPermission(setModal);
// if (permissionGranted) {
// await SubscriptionService.subscribeUserToNotifications(userId);
// } else {
// setModal("blocked_notification");
// console.log("req notif");
// }
// } catch (error) {
// console.error("Error handling notifications:", error);
// }
// };
useEffect(() => {
if (socket == null) return;
@@ -227,6 +213,7 @@ function App() {
removeLocalStorage("auth");
setDeviceType("guestDevice");
} else {
console.log(data)
setUser(data.data.user);
if (
data.data.user.password == "unsetunsetunset" &&