feat: control auto-loading of files + fixed method setDisplayName (#2295)
* fixing the setPushname function * Adding functions that change the media autoloading * Checking against raw data * fixed * fixed merge * ESLint * Update src/util/Injected.js Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com> --------- Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com> Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
This commit is contained in:
parent
104b05d36f
commit
04175063ce
3 changed files with 88 additions and 2 deletions
21
index.d.ts
vendored
21
index.d.ts
vendored
|
|
@ -143,6 +143,27 @@ declare namespace WAWebJS {
|
|||
* @param displayName New display name
|
||||
*/
|
||||
setDisplayName(displayName: string): Promise<boolean>
|
||||
|
||||
/**
|
||||
* Changes the autoload Audio
|
||||
* @param flag true/false on or off
|
||||
*/
|
||||
setAutoDownloadAudio(flag: boolean): Promise<void>
|
||||
/**
|
||||
* Changes the autoload Documents
|
||||
* @param flag true/false on or off
|
||||
*/
|
||||
setAutoDownloadDocuments(flag: boolean): Promise<void>
|
||||
/**
|
||||
* Changes the autoload Photos
|
||||
* @param flag true/false on or off
|
||||
*/
|
||||
setAutoDownloadPhotos(flag: boolean): Promise<void>
|
||||
/**
|
||||
* Changes the autoload Videos
|
||||
* @param flag true/false on or off
|
||||
*/
|
||||
setAutoDownloadVideos(flag: boolean): Promise<void>
|
||||
|
||||
/** Changes and returns the archive state of the Chat */
|
||||
unarchiveChat(chatId: string): Promise<boolean>
|
||||
|
|
|
|||
Loading…
Reference in a new issue