Commit Graph

10 Commits (26df196abad47c2be9409aa1a9c02c8d5f8e3c66)

Author SHA1 Message Date
lilia 5925c2fe84 Support for group sync
Protocol and handling is all analogous to contact sync: Multiple
GroupDetails structs are packed into a single attachment blob and parsed
on our end. We don't display the synced groups in the conversation list
until a new message is sent to one of them.

// FREEBIE
10 years ago
lilia 2f935dfd5e Add contact sync request protocol 10 years ago
lilia a833d62a71 Implement sync protocol changes
Update protobuf definitions and refactor message receive and decrypt
codepath to support new protocol, including various flavors of sync
messages (sent messages, contacts, and groups).

Also cleans up background.js and lets libtextsecure internalize
textsecure.processDecrypted and ensure that it is called before handing
DataMessages off to the application.

The Envelope structure now has a generic content field and a
legacyMessage field for backwards compatibility. We'll send outgoing
messages as legacy messages, and sync messages as "content" while
continuing to support both legacy and non-legacy messages on the receive
side until old clients have a chance to transition.
10 years ago
Matt Corallo 2277b41639 Remove non-existant device messages 10 years ago
lilia 104b49c371 Add SyncMessageContext
The sync field on a push message content indicates that this is a sync
message from a master or sibling device and what conversation it belongs
to.
10 years ago
Matt Corallo 184b1ec89c Move protocol protobufs to libaxolotl/, handling DeviceControl 10 years ago
Matt Corallo f6f35c5b61 Fix a missing function and dont blow up on delivery receipts 11 years ago
Matt Corallo 288d66b4a3 New protos with group messaging stuff 11 years ago
Matt Corallo fe570c754a Genericify initSession (and break it for alice) 11 years ago
Matt Corallo eec4c66ef6 Fixup dir structure 11 years ago