Commit graph

1254 commits

Author SHA1 Message Date
Matthew Chen 62e6c9a120 Fix crash unsafely accessing optional media method.
// FREEBIE
2017-04-21 14:21:23 -04:00
Michael Kirk 70d235a670 Choose arbitrary attachments from iCloud/GDrive/Dropbox/etc
// FREEBIE
2017-04-20 18:49:30 -04:00
Michael Kirk b1ea340c36 Callscreen fills buttons to show active state
// FREEBIE
2017-04-20 18:07:00 -04:00
Matthew Chen eb23252c6c Fix timer retain cycle.
// FREEBIE
2017-04-20 17:54:08 -04:00
Matthew Chen 4b2bdd9b52 Use audio attachment player in attachment preview dialog.
// FREEBIE
2017-04-20 11:15:19 -04:00
Matthew Chen 041badd295 Decouple the audio attachment player from the video attachment adapter.
// FREEBIE
2017-04-20 11:15:19 -04:00
Matthew Chen b90b71351f Respond to CR.
// FREEBIE
2017-04-20 11:12:58 -04:00
Matthew Chen 980d726a48 Add audio attachment player.
* Fix two bugs around play/pause button appearance.
* Fix bugs around stopping playback when leaving view/entering background.
* Fix bugs around cleaning up playback state  when leaving view/entering background.
* Fix audio playback vs. hardware mute button.
* Improve handling of invalid audio attachments.

// FREEBIE
2017-04-20 09:44:25 -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 2b09033dda Show mute status in home view.
// FREEBIE
2017-04-19 12:34:45 -04:00
Matthew Chen b2dd458f12 Fix “muted until” date format.
// FREEBIE
2017-04-19 11:55:00 -04:00
Matthew Chen b2664158b1 Pause animated gifs when offscreen; clean up media views more aggressively.
// FREEBIE
2017-04-19 11:45:06 -04:00
Matthew Chen ee765df4b1 Respond to CR.
// FREEBIE
2017-04-19 11:39:13 -04:00
Matthew Chen e36b5a4602 Improve group members view.
// FREEBIE
2017-04-19 11:37:27 -04:00
Matthew Chen 06f9affc01 Fix segues in conversation settings view.
// FREEBIE
2017-04-19 11:04:25 -04:00
Matthew Chen 2a9ac87568 Fix paste of text.
// FREEBIE
2017-04-19 10:22:53 -04:00
Matthew Chen 499c8d0bc1 Add muting of threads.
// FREEBIE
2017-04-19 09:57:12 -04:00
Matthew Chen d968c899b5 Add muting of threads.
// FREEBIE
2017-04-19 09:57:12 -04:00
Matthew Chen 2ca122f579 Add muting of threads.
// FREEBIE
2017-04-19 09:57:12 -04:00
Matthew Chen 2c286c8b53 Add muting of threads.
// FREEBIE
2017-04-19 09:57:12 -04:00
Matthew Chen c8466912f0 Add muting of threads.
// FREEBIE
2017-04-19 09:57:12 -04:00
Matthew Chen e025b86e75 Rework outgoing message state.
// FREEBIE
2017-04-17 18:05:47 -04:00
Matthew Chen cc766bcc53 Rework outgoing message state.
// FREEBIE
2017-04-17 18:05:47 -04:00
Matthew Chen 66d1a37859 Rework outgoing message state.
// FREEBIE
2017-04-17 18:05:47 -04:00
Matthew Chen 5c20a85974 Respond to CR.
// FREEBIE
2017-04-13 16:24:48 -04:00
Matthew Chen bf9ae552a3 Ignore hardware mute switch during video playback in attachment approval view.
// FREEBIE
2017-04-13 16:17:35 -04:00
Matthew Chen d9ef27d802 Ignore hardware mute switch during video playback in messages view.
// FREEBIE
2017-04-13 16:17:35 -04:00
Matthew Chen 1cf45a26d0 Merge remote-tracking branch 'origin/hotfix/2.10.1' 2017-04-13 16:13:35 -04:00
Matthew Chen 193d9421ce Respond to CR.
// FREEBIE
2017-04-13 16:06:23 -04:00
Matthew Chen 0018d0040b Honor attachment filenames.
// FREEBIE
2017-04-13 15:41:28 -04:00
Matthew Chen 70ac0acc68 Respond to CR.
// FREEBIE
2017-04-13 14:58:14 -04:00
Matthew Chen 54d2d85ebb Update SignalAttachment to allow arbitrary attachments.
// FREEBIE
2017-04-13 14:55:53 -04:00
Matthew Chen da13506db1 Respond to CR.
// FREEBIE
2017-04-13 14:42:05 -04:00
Matthew Chen db7cb8d388 Send oversize text messages as attachments.
// FREEBIE
2017-04-13 14:36:58 -04:00
Matthew Chen ebde769161 Respond to CR.
// FREEBIE
2017-04-13 13:49:46 -04:00
Matthew Chen 7f5847d2d5 Improve file size formatting in attachment approval dialog.
// FREEBIE
2017-04-12 16:53:28 -04:00
Matthew Chen de735dcf33 Add stubs for audio preview to attachment approval dialog.
// FREEBIE
2017-04-12 16:48:28 -04:00
Matthew Chen fc33b00830 Add animated image preview to attachment approval dialog.
// FREEBIE
2017-04-12 16:37:37 -04:00
Matthew Chen 5d79f43970 Add video preview to attachment approval dialog.
// FREEBIE
2017-04-12 16:30:25 -04:00
Matthew Chen 267462c584 Show block indicator in home view.
* Improve thread safety of home view cells.

// FREEBIE
2017-04-12 11:55:37 -04:00
Matthew Chen 878704cb12 Create block offer when non-contacts send you a message.
// FREEBIE
2017-04-12 08:38:54 -04:00
Matthew Chen c2e94f57ed Respond to CR.
// FREEBIE
2017-04-11 18:18:50 -04:00
Matthew Chen 660e4dd4c4 Show attachment approval dialog for all attachments.
// FREEBIE
2017-04-11 18:17:43 -04:00
Matthew Chen 5bc5e00156 Add debug UI action to send 1,000 messages so we can “load test” message view’s perf.
// FREEBIE
2017-04-11 18:09:45 -04:00
Matthew Chen 1ac487835a Reload data and invalidate layout whenever message view returns from background.
// FREEBIE
2017-04-11 18:09:45 -04:00
Matthew Chen 0a8c9e5622 Respond to CR.
// FREEBIE
2017-04-11 18:04:44 -04:00
Matthew Chen 4e3fbac107 Add explanation messages to the “block user alert” and the block section of the 1:1 conversation settings view.
// FREEBIE
2017-04-11 18:00:01 -04:00
Matthew Chen f503d7f93c Stay scrolled to the bottom during in conversation view during updates.
// FREEBIE
2017-04-11 17:46:28 -04:00
Michael Kirk 032cf0d953 sharing via message view is legible
// FREEBIE
2017-04-11 15:40:17 -04:00
Michael Kirk ca768d071a repeat phone number in header, next to back button
1. Putting it near the back-button suggests the user can change it by
   going back.

2. The existing title "Verify" didn't add any value.

// FREEBIE
2017-04-11 13:34:47 -04:00
Michael Kirk fb53a3258d clarify what to do on the verification screen
// FREEBIE
2017-04-11 13:34:47 -04:00
Matthew Chen 79a2612dbe Fix audio playback.
// FREEBIE
2017-04-11 09:47:53 -04:00
Michael Kirk 91fc6b4d04 Stretch to fit wider message counts
// FREEBIE
2017-04-10 19:31:40 -04:00
Michael Kirk 9bd2ff0572 Don't repaint back-button unread badge
There's not much benefit to this being done async, and making it sync
avoids the repaint.

Also, simplified the code around drawing the badge.

// FREEBIE
2017-04-10 19:04:14 -04:00
Michael Kirk 6b0eb7f9b5 Use numeric pad for verifiation code entry
No need for special phone characters like: *, -, +

// FREEBIE
2017-04-10 19:01:10 -04:00
Matthew Chen 6fde2852b1 Respond to CR.
// FREEBIE
2017-04-10 12:44:03 -04:00
Matthew Chen dc78e32bbf Reload data and invalidate layout whenever message view will appear.
// FREEBIE
2017-04-10 12:42:37 -04:00
Matthew Chen a93aad5124 Respond to CR.
// FREEBIE
2017-04-07 13:03:22 -04:00
Matthew Chen 4cd1684ded Don’t let user block themselves.
// FREEBIE
2017-04-07 13:02:30 -04:00
Matthew Chen 372d6b9bfd Don’t let user block themselves.
// FREEBIE
2017-04-07 13:02:30 -04:00
Matthew Chen 1ab4417687 Fix paste when pasteboard has multiple items.
// FREEBIE
2017-04-07 12:04:04 -04:00
Matthew Chen 3ac1e75b5f Ensure keyboard doesn't hide "safety numbers changed" interaction.
// FREEBIE
2017-04-07 11:54:42 -04:00
Matthew Chen 5feca42821 Reformat phone number if user changes country code.
// FREEBIE
2017-04-07 11:52:21 -04:00
Michael Kirk 9d0c76ca56 debug action to reset session
// FREEBIE
2017-04-06 21:09:56 -04:00
Michael Kirk 033591aeca Remove unused code
// FREEBIE
2017-04-06 21:09:56 -04:00
Michael Kirk caabae0024 Add new debug method to delete session
// FREEBIE
2017-04-06 21:06:13 -04:00
Matthew Chen 554125aeeb Dismiss keyboard if user scrolls in “new 1:1 conversation” view.
// FREEBIE
2017-04-06 21:00:59 -04:00
Michael Kirk cc16b9c893 CR nit: add assert
// FREEBIE
2017-04-06 20:59:07 -04:00
Matthew Chen 19d8f6cf01 Improvements around contact cells.
* Improve handling of accessory views/types.
* Use contact cell in “new/edit group” view.
* Don’t hide blocked contacts and group members in “new/edit group” view.
* Let users “unblock-to-add” blocked contacts in “new/edit group” view.

// FREEBIE
2017-04-06 20:59:07 -04:00
Matthew Chen 74820d9ba9 Respond to CR.
// FREEBIE
2017-04-06 15:30:21 -04:00
Matthew Chen a1bd2f66f8 Fix invalid assert in the OWS table views.
// FREEBIE
2017-04-06 12:07:51 -04:00
Matthew Chen fd86495e26 Respond to CR.
// FREEBIE
2017-04-06 11:57:08 -04:00
Matthew Chen 8823b2884a Refine the “block list” view.
// FREEBIE
2017-04-05 21:58:51 -04:00
Matthew Chen b5562fa126 Update “new 1:1 conversation” view.
* Don’t hide blocked users.  If selected, user needs to unblock to start conversation.
* Add “you have no contacts” indicator.
* Activate “block state indicator” in contact cell.

// FREEBIE
2017-04-05 21:39:15 -04:00
Matthew Chen b6f944f3d3 Tweak appearance of “add to block list” view.
// FREEBIE
2017-04-05 21:37:07 -04:00
Michael Kirk 4494a95a62 Block list is two words. Update code/comments/constants
// FREEBIE
2017-04-05 17:37:08 -04:00
Matthew Chen e0c7457eca Refine appearance of “add to block list” view.
// FREEBIE
2017-04-05 13:47:56 -04:00
Matthew Chen b3d6a82c4f Show blocked users in “add to block list” view.
// FREEBIE
2017-04-05 13:27:29 -04:00
Matthew Chen f56227ce26 Respond to CR.
// FREEBIE
2017-04-05 12:22:35 -04:00
Matthew Chen af6e51f83c Make local copy of contact list.
// FREEBIE
2017-04-05 12:18:44 -04:00
Matthew Chen 54e6d4400c Multiple improvements around contacts and the blocklist.
* Hide blocked users and current user in “new 1:1 conversation” view.
* Hide blocked users and current user in “new/edit group conversation” view.
* Hide blocked users and current user in “add to blocklist” view.
* Hide blocked users and current user in “blocklist” view.
* Improve thready safety around contact changes in views.

// FREEBIE
2017-04-05 12:18:44 -04:00
Matthew Chen 7273e6faa5 Respond to CR.
// FREEBIE
2017-04-05 12:18:01 -04:00
Matthew Chen 7f21a1bf62 Dismiss “block state indicator” if user scrolls message view.
// FREEBIE
2017-04-05 12:18:01 -04:00
Matthew Chen c500e7890f Improve completion handling of block actions.
// FREEBIE
2017-04-05 12:18:01 -04:00
Matthew Chen 9c9060203e Block actions in message view for blocked group conversations.
* Add block status indicator view.

// FREEBIE
2017-04-05 12:18:01 -04:00
Matthew Chen 8c347699bb Block actions in message view for blocked contact conversations.
// FREEBIE
2017-04-05 12:18:01 -04:00
Matthew Chen 71007cc3d1 Respond to CR.
// FREEBIE
2017-04-05 09:09:14 -04:00
Matthew Chen dcb7eef3fc Respond to CR.
// FREEBIE
2017-04-05 09:09:13 -04:00
Matthew Chen 54cd8cfa3c Add blacklist controls to 1:1 conversation view.
// FREEBIE
2017-04-05 09:09:13 -04:00
Matthew Chen 5fa1a3630f Respond to CR.
// FREEBIE
2017-04-04 09:32:26 -04:00
Matthew Chen 8dadc3ba22 Don’t update contacts in the blacklist views.
// FREEBIE
2017-04-04 09:12:11 -04:00
Matthew Chen 6c1d46c4d7 Use contact names where possible in the block list view.
// FREEBIE
2017-04-04 09:12:11 -04:00
Matthew Chen a7296db1fe Add contacts list to “add blocked number” view.
// FREEBIE
2017-04-04 09:12:11 -04:00
Matthew Chen 2e0c95c379 Respond to CR.
// FREEBIE
2017-04-03 17:49:06 -04:00
Matthew Chen db31454320 Respond to CR.
// FREEBIE
2017-04-03 17:49:06 -04:00
Matthew Chen 89e244ee0a Update to reflect changes to SSK.
// FREEBIE
2017-04-03 17:49:06 -04:00
Matthew Chen 8578390ee9 Clean up blocklist views.
// FREEBIE
2017-04-03 17:49:06 -04:00
Matthew Chen 922d48904f Refine BlockListViewController and AddToBlockListViewController.
// FREEBIE
2017-04-03 17:49:06 -04:00
Matthew Chen 271cc6f07e Sketch out BlockListViewController and AddToBlockListViewController.
// FREEBIE
2017-04-03 17:49:06 -04:00
Matthew Chen a155df161f Pull out OWSTableViewController.
// FREEBIE
2017-04-03 17:49:06 -04:00
Michael Kirk 9eb746a7a0 Fix crash when viewing changed safety numbers
Instantiate fingerprintVC programmatically since MVC was not built from
the storyboard and thus doesn't have it's storyboard-defined segues.

// FREEBIE
2017-03-31 14:53:28 -04:00
Michael Kirk d2732751ad New debug action: print sessions
// FREEBIE
2017-03-31 13:51:38 -04:00
Matthew Chen 7306803ae7 Add explicit calling code state to registration view.
// FREEBIE
2017-03-31 13:25:03 -04:00
Matthew Chen d12a582ee3 Rename source directories with a space in their name.
// FREEBIE
2017-03-31 11:58:52 -04:00