Commit Graph

22 Commits (ce1aa04b6193b47b82b44d529cca12c62fae4c48)

Author SHA1 Message Date
Michael Kirk 2dba7d141a Fix contact/group sync messages. (#32)
Initially we don't have device messages for our remote device. We need to send the empty device list to get the updated list of remote devices.

Introduced lots of dependency injection to make MessagesManager more testable.

// FREEBIE
9 years ago
Michael Kirk 1824af5335 Fixes: "unsupported attachment" when group is missing avatar (#31)
// FREEBIE
9 years ago
Michael Kirk a0df56a68e Fix multiple keychange errors (#29)
* Don't attempt to send a message unless we've successfully built a deveice-messages
* Only process message exception when we're done with retries.

// FREEBIE
9 years ago
Michael Kirk af155bf9ed Avoid deadlock when receiving read receipt before incoming message
// FREEBIE
9 years ago
Michael Kirk 0933b92128 Fix race condition with read receipts before incoming message
// FREEBIE
9 years ago
Michael Kirk 2de6927453 Remove sync data files after sync
// FREEBIE
9 years ago
Michael Kirk acb89f0b0f Outgoing Read Receipts
// FREEBIE
9 years ago
Michael Kirk 580781e3e4 Incoming Read Receipts
// FREEBIE
9 years ago
Michael Kirk fb9f0f9a4d Some nullability annotations
- prefer empty list (null object pattern!) for attachments vs nil
- stop passing nil args to init

// FREEBIE
9 years ago
Michael Kirk 8526f018e5 fixup group sync 9 years ago
Michael Kirk 36d3691c74 gather up device syncing classes
// FREEBIE
9 years ago
Michael Kirk 98d1c59bfc Sync Contacts with Desktop
* TODO refactor attachment sending to work without thread/message
* TODO de-dupe attachment pointer building code

// FREEBIE
9 years ago
Michael Kirk fe7171dd93 Sync messages with your other devices
After provisioning a desktop client, you'll see messages sent from your
phone appear on your desktop client, and messages sent from the desktop
client appear on your phone.

* In the process extracted some of the Attachment processing logic out
  of the giant MessagesManager.
* Some nullability annotations on affected files.

// FREEBIE
9 years ago
Michael Kirk 6ec21ade9b TSContactThread doesn't need to know protobufs
Just pass in the relay since that's the only thing we care about

// FREEBIE
9 years ago
Michael Kirk 1d0b645fc9 Update to new protocol (#23)
* new protobufs from libsignal-service-java@a1c93edc40e3ce201fa4e70339a3e6f4e197e319
* Makefile to build ObjC classes from *.proto
* refactored some touched code to minimize duplication
* removed unused protos
* deleted some dead code
* renamed method for clarity

// FREEBIE
9 years ago
Michael Kirk 28281ccfdd Delete lingering group avatar attachments
The images for group avatars are stored directly in the datbase, which
is fine since they are small. But then there's no reason to have them
lingering on the filesystem.

Also removed the unused group associatedAttachmentId property.

// FREEBIE
9 years ago
Michael Kirk e61c818738 Clarify message.attachments -> attachmentIds
What we *previously* refered to as attachments are actually just the
attachment's id (NSString). This has tripped me up a few too many
times.

Also, use generics with attachment id's array.

// FREEBIE
9 years ago
Michael Kirk 0f9a3334c1 Ensure interactions removed when thread is deleted
In theory, this should have already been handled by the
YapDatabaseRelationship extension via edges.

However, in practice, there were situations (cause unknown) where
interactions would exist without an edge to their corresponding thread.

Rather than being clever with the edge/callback machinery, now threads
explicitly delete all their interactions, and interactions delete all
their attachments (when applicable).

Also, a class to clean up spurious interactions / attachments

In the process:
- refactored TSYapDatabaseObject init to specify designated initializer
- added some testing niceties to TSYapDatabaseObject

// FREEBIE
9 years ago
Michael Kirk 2858694ee0 style changes // fix compiler warnings
- log errors
- forward declare where possible
- clang-format
- remove inaccurate file headers
- include Pods in Example app build target to get SignalServiceKit warnings
- Fix those warnings!

// FREEBIE
9 years ago
Frederic Jacobs a49d36d66a Renaming to SignalServiceKit.
TODOS: Rename Symbols and Xcode files.
9 years ago
Frederic Jacobs 8d6ce0b57c Notifications Protocol cleanup. 10 years ago
Frederic Jacobs 5d91a5bd4f Init Commit 10 years ago