Desktop: Image Preview and Dedupe File Upload (#6372)

This commit is contained in:
Daniel Polito 2025-12-29 14:22:48 -03:00 committed by GitHub
commit b7ce46f7a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 111 additions and 2 deletions

View file

@ -56,7 +56,7 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
const result = Binary.search(messages, input.messageID, (m) => m.id)
messages.splice(result.index, 0, message)
}
draft.part[input.messageID] = input.parts.slice()
draft.part[input.messageID] = input.parts.slice().sort((a, b) => a.id.localeCompare(b.id))
}),
)
},