mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
refactor: use constant state & authInfo on legacy
This commit is contained in:
@@ -258,9 +258,9 @@ const makeAuthSocket = (config: LegacySocketConfig) => {
|
||||
|
||||
return {
|
||||
...socket,
|
||||
state,
|
||||
authInfo,
|
||||
ev,
|
||||
getState: () => state,
|
||||
getAuthInfo: () => authInfo,
|
||||
waitForConnection,
|
||||
canLogin,
|
||||
logout
|
||||
|
||||
Reference in New Issue
Block a user