Update chats.ts

This commit is contained in:
azudin
2023-12-07 23:10:04 +08:00
committed by GitHub
parent ed6b8a22e4
commit 0898c7cd76

View File

@@ -777,6 +777,18 @@ export const makeChatsSocket = (config: SocketConfig) => {
return appPatch(patch)
}
/**
* Star or Unstar a message
*/
const star = (jid, message, star) => {
return chatModify({
star: {
message,
star
}
}, jid);
};
/**
* Adds label for the chats
*/