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:
@@ -192,6 +192,10 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
||||
})
|
||||
}
|
||||
|
||||
const updateProfileName = async(name: string) => {
|
||||
await chatModify({ pushNameSetting: name }, '')
|
||||
}
|
||||
|
||||
const fetchBlocklist = async() => {
|
||||
const result = await query({
|
||||
tag: 'iq',
|
||||
@@ -786,6 +790,7 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
||||
fetchStatus,
|
||||
updateProfilePicture,
|
||||
updateProfileStatus,
|
||||
updateProfileName,
|
||||
updateBlockStatus,
|
||||
getBusinessProfile,
|
||||
resyncAppState,
|
||||
|
||||
Reference in New Issue
Block a user