Commit graph

265 commits

Author SHA1 Message Date
Michael Kirk
b24cf29189 don't request contacts until necessary
Most commonly this will be after hitting the "compose" button

But also we'll do it in the SignalViewController once you've received a
message.

- get rid blocking contacts nag
- use Contacts framework simplifies logic
- remove dead AB code

// FREEBIE
2017-05-04 09:47:04 -04:00
Matthew Chen
931b6b4200 [SSK] Minor cleanup.
// FREEBIE
2017-05-03 18:02:59 -04:00
Matthew Chen
563ccf671e [SSK] Temporary change to improve read receipt logging.
// FREEBIE
2017-05-03 18:01:09 -04:00
Matthew Chen
c2cdeb3bcd Remove SCWaveformView.
// FREEBIE
2017-05-03 17:05:27 -04:00
Michael Kirk
4b6bfa4c4c "home", "other" and "work" instead of "Unknown" phone label
// FREEBIE
2017-05-03 16:50:49 -04:00
Matthew Chen
cb293f286a [SSK] Add SignalAccount class, Extract labels for phone numbers.
// FREEBIE
2017-05-02 12:40:51 -04:00
Matthew Chen
42768294ee Extract labels for phone numbers.
// FREEBIE
2017-05-02 09:28:50 -04:00
Michael Kirk
e1162fa641 [SSK] Better debugging information
- explicitly log type of received message vs. just "encrypted message"
  for better call debugging
- debug tool to print signed prekey report

// FREEBIE
2017-05-01 10:28:54 -04:00
Matthew Chen
788ec4ce01 Respond to CR.
// FREEBIE
2017-04-26 13:27:24 -04:00
Matthew Chen
8bf4cb83a5 [SSK] Improve handling of whitespace in contacts.
// FREEBIE
2017-04-20 20:26:51 -04:00
Matthew Chen
d248f6117f [SSK] Ignore oversize messages.
// FREEBIE
2017-04-20 17:37:57 -04:00
Michael Kirk
b3fc16b0ba [SSK] handle synced reset-session messages
// FREEBIE
2017-04-19 19:40:21 -04:00
Michael Kirk
5bbcc23da5 [SSK] Do not retry fatal message send errors.
e.g. don't retry group sends when someone had a SN change

// FREEBIE
2017-04-19 18:54:24 -04:00
Michael Kirk
d9e3e87735 New downloading progress view (#2006)
Replace previous "scary" warning-style attachment notifications with
something less alarming.

Includes file name and file type emoji when discernable.

// FREEBIE
2017-04-19 18:50:27 -04:00
Matthew Chen
67e94e2b55 [SSK] Do not try to resend unsaved outgoing messages when accepting a safety number change.
// FREEBIE
2017-04-19 18:21:09 -04:00
Matthew Chen
3c8635c352 [SSK] Add muting of threads.
// FREEBIE
2017-04-19 10:01:29 -04:00
Matthew Chen
ea848f31e6 [SSK] Fix outgoing message status for messages sent from linked devices.
// FREEBIE
2017-04-19 09:53:34 -04:00
Matthew Chen
dd807f676c [SSK] Rework outgoing message state & refine error handling for outgoing group messages.
// FREEBIE
2017-04-17 18:07:37 -04:00
Matthew Chen
f41762c316 [SSK] Avoid lost messages.
// FREEBIE
2017-04-17 16:08:25 -04:00
Matthew Chen
f9b51c01f4 [SSK] De-bounce the prekey checks.
// FREEBIE
2017-04-14 14:35:32 -04:00
Michael Kirk
0743722782 [SSK] ensure accepted SPKs are marked
// FREEBIE
2017-04-14 10:58:15 -04:00
Matthew Chen
9c6f76253a [SSK] Honor attachment filenames.
// FREEBIE
2017-04-13 16:09:51 -04:00
Matthew Chen
dc3a382c23 Respond to CR.
// FREEBIE
2017-04-13 15:38:32 -04:00
Matthew Chen
f38f3d8887 [SSK] Update SignalAttachment to allow arbitrary attachments.
// FREEBIE
2017-04-13 15:27:55 -04:00
Matthew Chen
33593921f6 [SSK] Rework socket manager.
// FREEBIE
2017-04-12 12:01:38 -04:00
Michael Kirk
1d9de09429 [SSK] Make sure we can return multiple recipients matches
// FREEBIE
2017-04-12 11:00:35 -04:00
Michael Kirk
5d604a796c [JSQMVC] Fixes "floating" edit menu for narrow media items
previously, edit menu was only positioned correctly for text bubbles,
and centered for media bubbles.

It wasn't that noticable for images/videos since those usually extended
to the middle of the conversation view, but with narrower media bubbles
(like arbitrary attachments) this became a bigger problem.

// FREEBIE
2017-04-12 10:24:29 -04:00
Matthew Chen
1d2e5d218d [SSK] Create block offer when non-contacts send you a message.
// FREEBIE
2017-04-12 08:42:22 -04:00
Matthew Chen
8490be6ed9 [SSK] Remove the properties related to Redphone and WebRTC support.
// FREEBIE
2017-04-11 17:39:57 -04:00
Matthew Chen
2fd8a13a3c [SSK] Improve attachment upload progress indicator.
// FREEBIE
2017-04-11 17:39:49 -04:00
Michael Kirk
2af89c9a2e [SSK][SPK] only assert dispatch in DEBUG
// FREEBIE
2017-04-07 14:20:35 -04:00
Michael Kirk
87845525b6 [SSK] serialize all read/write to sessionStore
Attempt to avoid session corruption happening due to an inconsistent
view of the session store by ensuring all access to the session store
happens on a serialized queue

// FREEBIE
2017-04-06 21:07:11 -04:00
Michael Kirk
398ee22f50 [SSK] rename cipher queue to sessionStoreQueue
// FREEBIE
2017-04-06 21:06:13 -04:00
Michael Kirk
a951d11d97 [SSK] move iOSVersion to SSK
// FREEBIE
2017-04-06 21:06:13 -04:00
Michael Kirk
4494a95a62 Block list is two words. Update code/comments/constants
// FREEBIE
2017-04-05 17:37:08 -04:00
Michael Kirk
f46080519e [SSK] Don't retry terminal sending failures
* Causing prekey request rate-limit when sending to someone who's
  reregistered.
* Unnecessarily printing "unregistered user" multiple times.
* etc.

// FREEBIE
2017-04-05 11:36:43 -04:00
Matthew Chen
3537518268 [SSK] Don’t block outgoing group messages.
// FREEBIE
2017-04-05 11:20:57 -04:00
Matthew Chen
f604cfb553 Apply assert to ensure singletons are only created once & filter incoming messages using the blacklist.
// FREEBIE
2017-04-03 14:53:23 -04:00
Matthew Chen
5ff454fd90 Fix double creation of NotificationsManager singleton.
// FREEBIE
2017-03-31 23:25:30 -04:00
Matthew Chen
d00c892158 Apply assert to ensure singletons are only created once.
// FREEBIE
2017-03-31 18:36:30 -04:00
Michael Kirk
7153994929 [SSK] [SPK] Update SignalProtocolKit and SignalServiceKit
// FREEBIE
2017-03-31 12:42:59 -04:00
Michael Kirk
7f239c8040 [SSK] + Enforce singleton access for MessagesManager and MessageSender
// FREEBIE
2017-03-31 10:41:46 -04:00
Michael Kirk
4c0242ee17 [spk] Update SignalProtocolKit
// FREEBIE
2017-03-30 13:36:05 -04:00
Matthew Chen
5138539d99 [SSK] Fix sharing of oversize text messages.
// FREEBIE
2017-03-30 11:20:45 -04:00
Matthew Chen
306895ea6d [SSK] Improve support for arbitrary attachments.
// FREEBIE
2017-03-30 09:13:48 -04:00
Matthew Chen
630fcedff0 [SSK] Accept arbitrary incoming attachments.
// FREEBIE
2017-03-29 12:59:29 -04:00
Matthew Chen
32d856ff2d [SSK] Improve handling of incomplete and failed attachment downloads.
// FREEBIE
2017-03-29 12:41:36 -04:00
Matthew Chen
5250d327e4 [SSK] Remove RedPhone code.
// FREEBIE
2017-03-29 12:36:20 -04:00
Matthew Chen
faf75e25c2 [SSK] Remove RedPhone code.
// FREEBIE
2017-03-29 12:30:31 -04:00
Matthew Chen
74f939b520 Remove RedPhone code.
// FREEBIE
2017-03-29 12:26:08 -04:00