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,
|
apiVersion: 5,
|
||||||
operation: OP.SET
|
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) {
|
} else if('delete' in mod) {
|
||||||
patch = {
|
patch = {
|
||||||
syncAction: {
|
syncAction: {
|
||||||
|
|||||||
Reference in New Issue
Block a user