mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
refactor: migrate WASignalGroup to TypeScript and remove deprecated files (#1320)
* refactor: migrate WASignalGroup to TypeScript and remove deprecated files * chore: remove WASignalGroup JavaScript files from package.json * refactor: update SenderKeyStore and SenderKeyStateStructure interfaces to export and add deserialize method. Fix types * chore: lint issue * refactor: improve constructor type checking and getSeed method in SenderChainKey * refactor: update key handling to use Buffer for improved consistency * signal: consistent naming and dir structure + add some missing types * fix: lint issues --------- Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
committed by
GitHub
parent
f404147736
commit
482db6edc5
9
src/Signal/Group/ciphertext-message.ts
Normal file
9
src/Signal/Group/ciphertext-message.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export class CiphertextMessage {
|
||||
readonly UNSUPPORTED_VERSION: number = 1
|
||||
readonly CURRENT_VERSION: number = 3
|
||||
readonly WHISPER_TYPE: number = 2
|
||||
readonly PREKEY_TYPE: number = 3
|
||||
readonly SENDERKEY_TYPE: number = 4
|
||||
readonly SENDERKEY_DISTRIBUTION_TYPE: number = 5
|
||||
readonly ENCRYPTED_MESSAGE_OVERHEAD: number = 53
|
||||
}
|
||||
Reference in New Issue
Block a user