mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Change profile name for yourself (#1913)
* feat: change profile name * fix: unnecessary return
This commit is contained in:
@@ -578,6 +578,18 @@ export const chatModificationToAppPatch = (
|
||||
apiVersion: 6,
|
||||
operation: OP.SET
|
||||
}
|
||||
} else if('pushNameSetting' in mod) {
|
||||
patch = {
|
||||
syncAction: {
|
||||
pushNameSetting: {
|
||||
name: mod.pushNameSetting
|
||||
}
|
||||
},
|
||||
index: ['setting_pushName'],
|
||||
type: 'critical_block',
|
||||
apiVersion: 1,
|
||||
operation: OP.SET,
|
||||
}
|
||||
} else {
|
||||
throw new Boom('not supported')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user