Commit Graph

412 Commits

Author SHA1 Message Date
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
Matthew Chen
c77ad7f77d Merge branch 'charlesmchen/whitespaceVsContactCells' 2017-04-20 20:25:21 -04:00
Matthew Chen
72730c06a6 Improve handling of whitespace in contacts.
// FREEBIE
2017-04-20 18:04:00 -04:00
Matthew Chen
476047e24a Merge branch 'charlesmchen/ignoreOversizeMessages' 2017-04-20 17:36:11 -04:00
Matthew Chen
6686167cc3 Ignore oversize messages.
// FREEBIE
2017-04-20 17:20:39 -04:00
Michael Kirk
8251f1e67b Merge branch 'mkirk/sync-session-reset' 2017-04-19 19:37:04 -04:00
Michael Kirk
e1055c26a3 Sync EndSession messages to linked devices
Alternatively, I considered deleting *only* the session with the device
which sent the message, but since other clients are deleting *all*
sessions associated with the contact, it will be less disruptive to get
in line with their behavior.

Fixes the scenario wherein:

* Alice.1 has a session with Bob.1 and Bob.2
* Bob.1 sends an EndSession to Alice
* Thus Alice.1 deletes her sessions with Bob.1 and Bob.2
* Bob.2 sends Alice1 "hi" (with the existing session - as a regular WM,
not a PKWM)
* Alice has no session with Bob.2 so cannot decrypt the message.

// FREEBIE
2017-04-19 19:18:25 -04:00
Michael Kirk
a21108db5c Log message type in prod
// FREEBIE
2017-04-19 19:04:25 -04:00
Michael Kirk
0bbe73e110 Merge branch 'charlesmchen/messageSendFatalErrors' 2017-04-19 18:52:35 -04:00
Matthew Chen
b40ec508b6 Do not retry fatal message send errors.
// FREEBIE
2017-04-19 18:52:28 -04:00
Michael Kirk
1fe0930740 Merge branch 'mkirk/download-progress' 2017-04-19 18:36:27 -04:00
Michael Kirk
68476a51dc Download service emits progress notifications
// FREEBIE
2017-04-19 18:36:17 -04:00
Matthew Chen
1032588da1 Merge branch 'charlesmchen/groupMessagesVsSafetyNumberChanges' 2017-04-19 18:18:27 -04:00
Matthew Chen
9b24ad7f14 Do not try to resend unsaved outgoing messages when accepting a safety number change.
// FREEBIE
2017-04-19 15:17:56 -04:00
Matthew Chen
b9eeb408c3 Merge branch 'charlesmchen/muteThreads' 2017-04-19 10:00:06 -04:00
Matthew Chen
f0ca468839 Respond to CR.
// FREEBIE
2017-04-19 09:59:49 -04:00
Matthew Chen
0e9da39c6b Add muting of threads.
// FREEBIE
2017-04-19 09:57:05 -04:00
Matthew Chen
51689b3341 Merge branch 'charlesmchen/fixMessagesFromLinkedDevices' 2017-04-19 09:49:43 -04:00
Matthew Chen
a3db112c50 Fix outgoing message status for messages sent from linked devices.
// FREEBIE
2017-04-18 21:45:33 -04:00
Matthew Chen
bb24ffc917 Merge branch 'charlesmchen/outgoingMessageState' 2017-04-17 18:05:22 -04:00
Matthew Chen
6341905c9b Respond to CR.
// FREEBIE
2017-04-17 16:45:22 -04:00
Matthew Chen
ced9d6f460 Retry group sends if any of its errors are re-tryable.
// FREEBIE
2017-04-17 16:11:51 -04:00
Matthew Chen
f191d6b096 Respond to CR.
// FREEBIE
2017-04-17 16:11:51 -04:00
Matthew Chen
aa70ada399 Refine error handling for outgoing group messages.
// FREEBIE
2017-04-17 16:11:51 -04:00
Matthew Chen
db051b3b3e Consider group send a failure if sending to any member in the group fails.
// FREEBIE
2017-04-17 16:11:51 -04:00
Matthew Chen
1023eeb8a0 Rework outgoing message state.
// FREEBIE
2017-04-17 16:11:51 -04:00
Matthew Chen
1404d0d7eb Rework outgoing message state.
// FREEBIE
2017-04-17 16:11:51 -04:00
Matthew Chen
bf18b1f286 Rework outgoing message state.
// FREEBIE
2017-04-17 16:11:51 -04:00
Matthew Chen
654ef89049 Rework outgoing message state.
// FREEBIE
2017-04-17 16:11:51 -04:00
Matthew Chen
04dc930e0c Rework outgoing message state.
// FREEBIE
2017-04-17 16:11:51 -04:00
Matthew Chen
0ab6bcd080 Rework outgoing message state.
// FREEBIE
2017-04-17 16:11:51 -04:00
Matthew Chen
91aeddf383 Merge branch 'charlesmchen/lostMessages' 2017-04-17 16:06:14 -04:00
Matthew Chen
42e005a498 Avoid lost messages by acknowledges message receipt after the message is processed.
// FREEBIE
2017-04-17 16:05:59 -04:00
Matthew Chen
2367ab7439 Merge branch 'charlesmchen/prekeyDoubleUpdate_' 2017-04-14 14:34:31 -04:00
Matthew Chen
406e2d862b De-bounce the prekey checks.
// FREEBIE
2017-04-14 14:31:28 -04:00
Matthew Chen
0224af7465 De-bounce the prekey checks.
// FREEBIE
2017-04-14 14:31:28 -04:00
Michael Kirk
a715ed0794 Merge branch 'mkirk/mark-as-accepted' 2017-04-14 10:56:26 -04:00
Michael Kirk
522c191fd1 Persist when signed pre key was 'acceptedByService'
// FREEBIE
2017-04-14 10:56:20 -04:00
Matthew Chen
238fd0d9f1 Merge branch 'charlesmchen/honorAttachmentFilenames' 2017-04-13 16:08:37 -04:00
Matthew Chen
fa2ff8158c Respond to CR.
// FREEBIE
2017-04-13 16:05:59 -04:00