Commit graph

77 commits

Author SHA1 Message Date
Michael Kirk 34868b9b0f fix captions in groups and sync messages (#42)
* Fix incoming group caption for groups.
* sync message transcript captions are expired

// FREEBIE
2016-10-11 09:24:40 -04:00
Michael Kirk 40cdc7f224 disappearing messages
* Support for disappearing messages
* update inbox thread preview when receiving message

// FREEBIE
2016-10-11 09:24:40 -04:00
Michael Kirk c1ade86a8b New fingerprint format
In coordination with Desktop and Android, iOS will be using all-numeric
fingerprints, aka "Safety Numbers".

Furthermore, the concept of verifying one identity and then the other
has been removed. Instead we ask users to exchange a single number, or
scan a single QR code. These credentials are built by combining the
users identities.

// FREEBIE
2016-10-11 09:24:40 -04:00
Michael Kirk ce1aa04b61 Fix device listing (#38)
broken while refactoring to async

// FREEBIE
2016-09-30 09:16:23 -04:00
Michael Kirk cf035a597d Merge pull request #37 from WhisperSystems/mkirk/more-resilient-db-setup
more resilient db setup
2016-09-28 15:21:12 -04:00
Michael Kirk ff9729f421 Avoid blocking app launch
// FREEBIE
2016-09-28 12:09:37 -04:00
Michael Kirk f256617636 If we can't find a class definition, don't explode, just log.
If we have a serialized object in our data store that wasn't properly
removed, we can be faced with an exception when enumerating objects in
the database, e.g. when we add a new Yap Index.

// FREEBIE
2016-09-28 12:07:22 -04:00
Michael Kirk 5b06b4351f Fix timeout on launch for some users (#36)
This would especially affect users with large databases on older
devices.

Some of these database extensions aren't strictly necessary to launch
the app. Theoretically we could see weird read receipt behavior for
the initial 10-30 seconds after the app is launched for first time.

// FREEBIE
2016-09-28 00:07:42 -04:00
Michael Kirk 06538f6b46 Not an error. Don't log it as such. (#35)
ContactThreads and GroupThreads share a collection.

// FREEBIE
2016-09-27 20:47:35 -04:00
Michael Kirk c5edc9997a Production log level to INFO (#34)
// FREEBIE
2016-09-27 20:15:02 -04:00
Michael Kirk 1098bc203e Fix crash on boot (#33)
A botched migration 6 months ago left some lingering TSRecipients
serialized in our data store, laying in wait to explode the next time we
enumerate every object in the database (e.g. when we add an index).

// FREEBIE
2016-09-26 21:23:06 -04:00
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
2016-09-23 16:55:56 -04:00
Michael Kirk 1824af5335 Fixes: "unsupported attachment" when group is missing avatar (#31)
// FREEBIE
2016-09-20 18:57:11 -04:00
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
2016-09-19 21:57:20 -04:00
Michael Kirk 9821e0c0d0 Merge pull request #28 from WhisperSystems/desktop-integration
Desktop integration fixups
2016-09-17 13:47:58 -04:00
Michael Kirk 27dfb59a0c Emit notification when message is read.
We observe this in Signal to remove notifications for messages that were
read remotely.

// FREEBIE
2016-09-14 12:58:15 -04:00
Michael Kirk 800e2a9541 Log exception rather than crash upon failed deserialization
while populating secondary indexes

// FREEBIE
2016-09-13 15:17:57 -04:00
Michael Kirk 65e6778033 log network manager requests
// FREEBIE
2016-09-13 12:26:12 -04:00
Michael Kirk af155bf9ed Avoid deadlock when receiving read receipt before incoming message
// FREEBIE
2016-09-13 10:16:25 -04:00
Michael Kirk eb96f846a4 Send user agent to desktop so they can pick a theme for us
// FREEBIE
2016-09-12 14:31:39 -04:00
Michael Kirk d802918603 Merge pull request #26 from WhisperSystems/read-voice-messages
Read voice messages
2016-09-12 08:34:45 -04:00
Michael Kirk 3e5af16dc3 Don't explode when attachment support revoked.
Also, more nullability annotations.

NSURL can't be given a nil filepath. This can occur when a previously
supported attachment was downloaded, and then viewed after that
attachment was no longer supported (e.g. when installing back and forth
across versions)

// FREEBIE
2016-09-11 12:10:08 -04:00
Michael Kirk 1df99c5812 fix voice messages for iOS
// FREEBIE
2016-09-11 12:10:08 -04:00
Michael Kirk 7d70f6e770 Merge pull request #25 from WhisperSystems/dt
Multi Device (Desktop) Integration

// FREEBIE
2016-09-10 18:41:52 -04:00
Michael Kirk 0933b92128 Fix race condition with read receipts before incoming message
// FREEBIE
2016-09-09 15:11:41 -04:00
Michael Kirk 2de6927453 Remove sync data files after sync
// FREEBIE
2016-09-09 15:11:41 -04:00
Michael Kirk c8a5f50763 Fixup DevicesManager
* By providing a view extension for secondary devices we can use that in
  a view mapping to power our devices view controller, and avoid any race
  conditions with uncommitted transactions.

* Fix crash when you're not in your own contacts

* New device appears on top

* Don't show "edit" button unless there are devices, or rather, the helpers to do so.

* Fix glitchy refresh

  Saving unchanged records was causing the tableview to redraw, which was
  mostly invisible, except that if the refresh indicator were running, it
  would twitch.

// FREEBIE
2016-09-09 15:11:40 -04:00
Michael Kirk c39e8b0bc6 extract constant for image/png
// FREEBIE
2016-09-09 15:11:40 -04:00
Michael Kirk acb89f0b0f Outgoing Read Receipts
// FREEBIE
2016-09-09 15:11:40 -04:00
Michael Kirk 580781e3e4 Incoming Read Receipts
// FREEBIE
2016-09-09 15:11:40 -04:00
Michael Kirk a99fde4d3b Device manager
// FREEBIE
2016-09-09 15:11:40 -04:00
Michael Kirk d48fd158b7 Build contact/group exports with data streams
Ideally we'd be using file streams so we wouldn't have to load it all
into ram but none of the attachment uploading infrastructure takes
streams (yet!)

// FREEBIE
2016-09-02 19:45:02 -04:00
Michael Kirk fb9f0f9a4d Some nullability annotations
- prefer empty list (null object pattern!) for attachments vs nil
- stop passing nil args to init

// FREEBIE
2016-09-02 19:45:02 -04:00
Michael Kirk 8526f018e5 fixup group sync 2016-09-02 19:45:02 -04:00
Michael Kirk 69da0b3c25 Sync Groups with Desktop
// FREEBIE
2016-09-02 12:29:55 -04:00
Michael Kirk 36d3691c74 gather up device syncing classes
// FREEBIE
2016-09-02 12:29:54 -04:00
Michael Kirk 98d1c59bfc Sync Contacts with Desktop
* TODO refactor attachment sending to work without thread/message
* TODO de-dupe attachment pointer building code

// FREEBIE
2016-09-02 12:29:43 -04:00
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
2016-09-02 12:28:58 -04:00
Michael Kirk 9093be2b0d Device provisioning
// FREEBIE
2016-09-02 12:28:58 -04:00
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
2016-09-02 12:28:58 -04:00
Michael Kirk f4d90688b9 Replace compiler warning with logging message
// FREEBIE
2016-09-02 12:28:57 -04:00
Michael Kirk 4d52d28e06 Use non-deprecated method for sending data.
No copying required in our case since we've just built the data for only
this purpose.

// FREEBIE
2016-09-02 12:28:57 -04:00
Michael Kirk c1a0b88232 Don't crash when contact lookup is given nil contact
// FREEBIE
2016-09-02 12:28:57 -04:00
Michael Kirk 5ae2717872 Simplify deviceMessages method
no need for a callback as it's a sync method.

// FREEBIE
2016-09-02 12:28:57 -04:00
Michael Kirk 9fe0ca000a bump version
// FREEBIE
2016-09-02 12:28:57 -04:00
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
2016-08-22 16:09:58 -04:00
Michael Kirk f3a91c2629 Avoid collision with iOS10 SSKeychain framework (#24)
Our pod SSKeychain was renamed to -> SAMKeychain to avoid collision with
the iOS10 library SSKeychain.

* log failure to write keychain (this seems to only happen on simulator)
* ensure we exit if we fail to set DB cipher key

// FREEBIE
2016-08-18 13:40:48 -04:00
ArkadiuszBanas 01ab8d132d Handle animated content type in TSAttachment:description: (#19)
Displaying icons for gifs was missing in messages list cells
(https://github.com/WhisperSystems/Signal-iOS/issues/1271).

//FREEBE
2016-08-02 11:50:59 -06:00
Michael Kirk 9aa88f6ce5 Merge pull request #21 from WhisperSystems/fix-delete-attachments
Fixup e61c81 by migrating old schema
2016-08-01 09:41:38 -07:00
Michael Kirk baf564db2e Fixup e61c81 by migrating old schema
// FREEBIE
2016-08-01 09:09:12 -07:00