Commit Graph

451 Commits

Author SHA1 Message Date
Matthew Chen
77dbf6480c Respond to CR.
// FREEBIE
2017-05-10 14:54:15 -04:00
Matthew Chen
c89b9fb0bf Disable “disappearing messages” job when inactive.
// FREEBIE
2017-05-10 14:54:15 -04:00
Matthew Chen
6e52009ff0 Rework the “disappearing messages” logic.
// FREEBIE
2017-05-10 14:54:15 -04:00
Matthew Chen
9f569d376c Merge branch 'charlesmchen/autoRejoinGroups' 2017-05-10 10:05:16 -04:00
Matthew Chen
d5118273b8 Respond to CR.
// FREEBIE
2017-05-10 10:05:01 -04:00
Matthew Chen
315775ff23 Auto-rejoin groups by emitting and responding to “request group info” messages.
// FREEBIE
2017-05-10 09:42:26 -04:00
Michael Kirk
311206918f Merge branch 'mkirk/safer-key-delete' 2017-05-09 19:05:58 -04:00
Michael Kirk
e9c0c46a23 Always keep at least 3 old signed prekeys (accepted or otherwise).
If the keys weren't marked as accepted, we risk deleting keys which are
still probably relevant.

// FREEBIE
2017-05-09 19:05:54 -04:00
Matthew Chen
4e08b8092d Merge branch 'charlesmchen/flagVoiceMessages' 2017-05-09 11:43:46 -04:00
Matthew Chen
e56e9434ab Respond to CR.
// FREEBIE
2017-05-09 11:43:25 -04:00
Matthew Chen
b846532351 Flag voice messages as such in protos.
// FREEBIE
2017-05-09 11:42:21 -04:00
Matthew Chen
92de9a5e72 Merge branch 'charlesmchen/attachmentMimeTypes' 2017-05-09 11:28:58 -04:00
Matthew Chen
3e9fbb1bec Prefer to deduce the MIME type from the file extension using lookup, not the UTI type.
// FREEBIE
2017-05-08 15:49:28 -04:00
Matthew Chen
cb6de93a83 Try to deduce attachment MIME type from the file extension if possible.
// FREEBIE
2017-05-08 15:17:06 -04:00
Matthew Chen
955c4d8a02 Merge branch 'charlesmchen/phoneNumberParsingPerf' 2017-05-05 21:06:49 -04:00
Matthew Chen
6c2de6ed56 Fix a hotspot in the phone number parsing logic.
// FREEBIE
2017-05-05 21:06:32 -04:00
Matthew Chen
71a304f84f Merge branch 'charlesmchen/multipleAccounts' 2017-05-05 21:00:23 -04:00
Matthew Chen
1b93cd29c2 Rework handling of phone number names.
// FREEBIE
2017-05-05 21:00:14 -04:00
Matthew Chen
d82afb8bb7 Merge branch 'charlesmchen/contactsSync' 2017-05-05 20:55:25 -04:00
Matthew Chen
9bfcc8e38b Add “is complete” flag to contacts sync proto.
// FREEBIE
2017-05-05 20:53:09 -04:00
Matthew Chen
41e564db47 Use SignalAccount class to sync contacts.
// FREEBIE
2017-05-05 20:53:09 -04:00
Matthew Chen
741e5c02ac Add “is complete” flag to contacts sync proto.
// FREEBIE
2017-05-05 20:53:09 -04:00
Michael Kirk
f078f8adc2 Merge branch 'mkirk/compiler-warnings' 2017-05-05 14:26:14 -04:00
Michael Kirk
ad31c75e88 fix more compiler warnings
* initWithCoder is a designated initializer for *any* TSYapDatabase model
* doc fixes
* cast log param appropriately

Compiler Warnings: 337 -> 331

// FREEBIE
2017-05-04 17:56:55 -04:00
Michael Kirk
50df5b682b nullability annotations for TSInteraction
Compiler warnings: 343 -> 337

// FREEBIE
2017-05-04 17:49:44 -04:00
Michael Kirk
c9f397d590 nullability audit for MimeTypeUtil
* added missing nullability annotations
* guard against insterting nil into set
* remove unused code

Compiler Warnings: 364 -> 343

// FREEBIE
2017-05-04 17:48:00 -04:00
Michael Kirk
1754ad25d2 nullability annotations
Compiler Warnings: 387 -> 364

// FREEBIE
2017-05-04 17:19:04 -04:00
Michael Kirk
24c84cbbad Merge branch 'mkirk/better-send-logs' 2017-05-04 09:48:08 -04:00
Michael Kirk
a92129a0ee better sending logs
// FREEBIE
2017-05-04 09:43:13 -04:00
Michael Kirk
e336e0b34a Merge branch 'mkirk/delay-contact-access' 2017-05-04 09:41:55 -04:00
Michael Kirk
4338c59356 disambiguate contact param
// FREEBIE
2017-05-04 09:41:40 -04:00
Matthew Chen
d25a934039 Merge branch 'charlesmchen/cleanup' 2017-05-03 18:02:29 -04:00
Matthew Chen
9b8d6bd87d Minor cleanup.
// FREEBIE
2017-05-03 18:02:19 -04:00
Matthew Chen
25e086c221 Merge branch 'charlesmchen/autoMarkAsRead' 2017-05-03 17:59:57 -04:00
Matthew Chen
2a64ff29e5 Temporary change to improve read receipt logging. 2017-05-03 17:26:48 -04:00
Michael Kirk
77833e727a Merge pull request #196 from WhisperSystems/mkirk/contact-fixup
Properly handle "work", "home", and "other" labels
2017-05-03 16:34:09 -04:00
Michael Kirk
f4dd01e300 Properly handle "work", "home", and "other" labels
// FREEBIE
2017-05-03 15:00:44 -04:00
Matthew Chen
4431fa3356 Merge branch 'charlesmchen/signalAccount' 2017-05-02 12:39:27 -04:00
Matthew Chen
5058eb837e Add SignalAccount class.
// FREEBIE
2017-05-01 14:10:03 -04:00
Matthew Chen
cd9e1fb574 Add SignalAccount class.
// FREEBIE
2017-05-01 12:46:59 -04:00
Matthew Chen
e3c9598122 Extract labels for phone numbers.
// FREEBIE
2017-05-01 12:46:24 -04:00
Matthew Chen
9dc6014850 Extract labels for phone numbers.
// FREEBIE
2017-05-01 12:46:24 -04:00
Michael Kirk
608852898a Merge branch 'mkirk/debug-call-messages' 2017-05-01 10:26:33 -04:00
Michael Kirk
52b19a9118 better debug messages about what *kind* of encrypted message we received
Uniform logging, removing redundant logging wherever possible, to add
details about what kind of message was received.

In particular, with calls, when there are lots of messages going back
and forth, this makes it easier to make sense of what's being exchanged.

// FREEBIE
2017-05-01 10:26:29 -04:00
Michael Kirk
c47e766c10 Merge branch 'mkirk/debug-spk' 2017-05-01 10:25:32 -04:00
Michael Kirk
bf6f013153 debug tool: print signed prekey report
Example output:

    SignedPreKeys Report:
      currentId: 111111111
      firstPrekeyUpdateFailureDate: (null)
      prekeyUpdateFailureCount: 0
      All Keys (count: 2):
        #1 <SignedPreKeyRecord: id: 111111111, generatedAt: 2017-04-24 19:23:55 +0000, wasAcceptedByService:YES, signature: <abcdefgh ..>
        #2 <SignedPreKeyRecord: id: 222222222, generatedAt: 2017-04-20 19:23:55 +0000, wasAcceptedByService:YES, signature: <12345678 ..>

// FREEBIE
2017-05-01 10:25:27 -04:00
Matthew Chen
cc055f034a Merge branch 'charlesmchen/genericAttachmentAppearance' 2017-04-26 13:08:39 -04:00
Matthew Chen
b986db808d Add filename to attachment streams. 2017-04-26 11:07:42 -04:00
Matthew Chen
5d4b96924d Merge branch 'charlesmchen/utiTypeForFileExtension' 2017-04-25 16:59:29 -04:00
Matthew Chen
19754bacb9 Add a "UTI type for file extension" method.
// FREEBIE
2017-04-24 22:31:13 -04:00