diff --git a/src/components/Chat/ChatGroup.tsx b/src/components/Chat/ChatGroup.tsx index dfd5844..e7cc018 100644 --- a/src/components/Chat/ChatGroup.tsx +++ b/src/components/Chat/ChatGroup.tsx @@ -68,7 +68,7 @@ const [messageSize, setMessageSize] = useState(0) setTimeout(() => { getTimestampEnterChatParent(); - }, 200); + }, 600); } res(response); diff --git a/src/components/Group/Group.tsx b/src/components/Group/Group.tsx index bc53746..2c49387 100644 --- a/src/components/Group/Group.tsx +++ b/src/components/Group/Group.tsx @@ -931,7 +931,7 @@ export const Group = ({ setTimeout(() => { getTimestampEnterChat(); - }, 200); + }, 600); } if (message?.action === "SET_GROUP_ANNOUNCEMENTS") { diff --git a/src/messaging/messagesToBackground.tsx b/src/messaging/messagesToBackground.tsx index 25140a7..1d5c724 100644 --- a/src/messaging/messagesToBackground.tsx +++ b/src/messaging/messagesToBackground.tsx @@ -24,7 +24,7 @@ window.addEventListener("message", (event) => { } }); -export const sendMessageBackground = (action, data = {}, timeout = 120000, isExtension, appInfo) => { +export const sendMessageBackground = (action, data = {}, timeout = 180000, isExtension, appInfo) => { return new Promise((resolve, reject) => { const requestId = generateRequestId(); // Unique ID for each request callbackMap.set(requestId, { resolve, reject }); // Store both resolve and reject callbacks