WA uses an encrypted form of communication to send chat/app updates. This has been implemented mostly and you can send the following updates:
If you mess up one of your updates, WA can log you out of all your devices and you’ll have to log in again.
Archive a Chat
To archive a chat, you need to provide the last message in that chat:
Mute/Unmute a Chat
You can mute a chat for specific durations or unmute it completely.
Supported Times
Examples
Mark a Chat Read/Unread
You can mark entire chats as read or unread by providing the last message:
To mark as read, use markRead: true
Delete a Message for Me
Delete specific messages from your chat history:
Delete a Chat
Completely delete a chat conversation:
Pin/Unpin a Chat
Pin important chats to the top of your chat list:
Star/Unstar a Message
Mark messages as starred for easy reference:
The chatModify function is defined in src/Socket/chats.ts:899 and uses app state patches to sync changes across devices.