mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Added user
This commit is contained in:
@@ -47,7 +47,7 @@ export class WAConnection extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const updatedChats = !!this.lastDisconnectTime && updates
|
const updatedChats = !!this.lastDisconnectTime && updates
|
||||||
const result: WAOpenResult = { newConnection, updatedChats }
|
const result: WAOpenResult = { user: this.user, newConnection, updatedChats }
|
||||||
this.emit ('open', result)
|
this.emit ('open', result)
|
||||||
|
|
||||||
this.releasePendingRequests ()
|
this.releasePendingRequests ()
|
||||||
|
|||||||
@@ -339,6 +339,7 @@ export interface WAMessageStatusUpdate {
|
|||||||
export interface WAOpenResult {
|
export interface WAOpenResult {
|
||||||
/** Was this connection opened via a QR scan */
|
/** Was this connection opened via a QR scan */
|
||||||
newConnection: boolean
|
newConnection: boolean
|
||||||
|
user: WAUser
|
||||||
updatedChats?: {
|
updatedChats?: {
|
||||||
[k: string]: Partial<WAChat>
|
[k: string]: Partial<WAChat>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user