Cleaner code. Remove credentials-updated & connection-validated as they became obsolete

`credentials-updated` & `connection-validated` became obsolete as they are equivalent to `open`
This commit is contained in:
Adhiraj Singh
2021-01-04 17:07:51 +05:30
parent 6cc5a910f7
commit efe6bf1dd3
6 changed files with 59 additions and 81 deletions
+2 -3
View File
@@ -405,7 +405,7 @@ export interface WAOpenResult {
newConnection: boolean
user: WAUser
isNewUser: boolean
hasNewChats?: boolean
auth: AuthenticationCredentials
}
export enum GroupSettingChange {
@@ -451,15 +451,14 @@ export type BaileysEvent =
'close' |
'ws-close' |
'qr' |
'connection-validated' |
'connection-phone-change' |
'contacts-received' |
'chats-received' |
'initial-data-received' |
'chat-new' |
'chat-update' |
'group-participants-update' |
'group-update' |
'received-pong' |
'credentials-updated' |
'blocklist-update' |
'contact-update'