Deploy: 2026-06-24 15:32:02

This commit is contained in:
Hamza-Ayed
2026-06-24 15:32:02 +03:00
parent f565b211ee
commit a21ba8a058
3 changed files with 9 additions and 2 deletions

View File

@@ -455,11 +455,17 @@ function getActiveSessions() {
return Array.from(sessions.keys());
}
function isSessionReady(session_key) {
const sock = sessions.get(session_key);
return !!(sock && sock.user);
}
module.exports = {
startSession,
disconnectSession,
sendMessage,
getActiveSessions,
checkContact
checkContact,
isSessionReady
};