mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Fixed star message
This commit is contained in:
@@ -583,6 +583,19 @@ export const chatModificationToAppPatch = (
|
||||
apiVersion: 5,
|
||||
operation: OP.SET
|
||||
}
|
||||
} else if('star' in mod) {
|
||||
const key = mod.star.messages[0]
|
||||
patch = {
|
||||
syncAction: {
|
||||
starAction: {
|
||||
starred: !!mod.star
|
||||
}
|
||||
},
|
||||
index: ['star', jid, key.id, key.fromMe ? '1' : '0', '0'],
|
||||
type: 'regular_low',
|
||||
apiVersion: 2,
|
||||
operation: OP.SET
|
||||
}
|
||||
} else if('delete' in mod) {
|
||||
patch = {
|
||||
syncAction: {
|
||||
|
||||
Reference in New Issue
Block a user