[core] Fix sock auth
This commit is contained in:
1 parent
b77b8ee0da
commit
cff22c74a9
1 file changed
+1
-1
@@ -424,7 +424,7 @@ export class WhatsappSessionNoWebCore extends WhatsappSession {
|
||||
}
|
||||
|
||||
getSessionMeInfo(): MeInfo | null {
|
||||
const me = this.sock.authState?.creds?.me;
|
||||
const me = this.sock?.authState?.creds?.me;
|
||||
if (!me) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user