Fixed star message

This commit is contained in:
azudin
2023-12-02 07:26:09 +08:00
committed by GitHub
parent e24947e55a
commit ece99eab23

View File

@@ -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: {