Commit Graph

775 Commits (c2f07bb3d8c9ca47281ef7322b7694d36dd715b7)

Author SHA1 Message Date
Matthew Chen 34a7f9cba5 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen b21e5c3248 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 7f92b5a96b Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 7a37de28e5 Clean up ahead of PR.
// FREEBIE
8 years ago
Matthew Chen bf6d8ec141 Clean up ahead of PR.
// FREEBIE
8 years ago
Matthew Chen 8ecdc8a2eb Move voice memo button to send button.
// FREEBIE
8 years ago
Matthew Chen c34d61b93f Add cancel-by-swipe of voice memo recording.
// FREEBIE
8 years ago
Matthew Chen 608cb70a3b Add voice memo recording.
// FREEBIE
8 years ago
Matthew Chen 45c8695ab4 Sketch out the voice memo UI.
// FREEBIE
8 years ago
Michael Kirk fbcda40400 rename class, extract color
per code review

// FREEBIE
8 years ago
Michael Kirk a58a71f8f4 no contacts banner -> system settings 8 years ago
Matthew Chen 9f4b8d3b0f Slightly reduce the non-contact cell heights in “new 1:1 conversation” view.
// FREEBIE
8 years ago
Matthew Chen d0e26a58c3 Show “invite by SMS” offer for matching non-Signal contacts when searching in “new 1:1: conversation” view.
// FREEBIE
8 years ago
Matthew Chen 1e6fd385b5 Fix assert in conversation settings view.
// FREEBIE
8 years ago
Matthew Chen 0c4351a908 Use SignalAccount class to sync contacts.
// FREEBIE
8 years ago
Michael Kirk d7c7fff679 Fix some compiler warnings
* explicit optional usage in strings
* remove some unused StringUtil code
* swiftlint affected files
* more concise optional casting (and avoid a `!`)

Compiler warnings: 343 -> 318

(Actually most of these are in external libs, but 115 remain in Signal/SSK)

// FREEBIE
8 years ago
Matthew Chen 45ae8fb067 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 2bc1d44cd2 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 1b99671e0e Clean up ahead of PR.
// FREEBIE
8 years ago
Matthew Chen 325134c6e8 Clean up ahead of PR.
// FREEBIE
8 years ago
Matthew Chen 363d84fd2d Update “new conversation” view to use OWSTableView, contacts view helper, etc.
// FREEBIE
8 years ago
Matthew Chen 1444cfc630 Merge remote-tracking branch 'origin/hotfix/2.11.2' 8 years ago
Michael Kirk 364f416a69 Block editing contact if user has denied contact permissions
// FREEBIE
8 years ago
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
8 years ago
Matthew Chen 33415eaa0f Respond to CR.
// FREEBIE
8 years ago
Matthew Chen ae7934c117 Update appearance of audio and generic attachment adapters.
// FREEBIE
8 years ago
Matthew Chen 800715a5e0 Remove waveform from audio message bubbles.
// FREEBIE
8 years ago
Michael Kirk 2f05dcc2c5 fix crash when viewing undisplayable text
(can't init attributed string with nil)

// FREEBIE
8 years ago
Matthew Chen 0f85284b82 Fix speakerphone vs. WebRTC AND Fix CallService edge cases.
// FREEBIE
8 years ago
Matthew Chen 4bc98dba58 Rework the scaling and cropping of group avatars.
// FREEBIE
8 years ago
Matthew Chen 26f69b0063 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen f71ec9f7cb Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 2bec1db541 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen ad11c50c1b Reworking observation of Contact and SignalAccount changes.
// FREEBIE
8 years ago
Matthew Chen 994aec0d86 Add SignalAccount class.
// FREEBIE
8 years ago
Matthew Chen 6801963a1b Add SignalAccount class.
// FREEBIE
8 years ago
Matthew Chen 93700f1044 Extract labels for phone numbers.
// FREEBIE
8 years ago
Matthew Chen 42768294ee Extract labels for phone numbers.
// FREEBIE
8 years ago
Matthew Chen cb9d96be00 Clean up ahead of PR.
// FREEBIE
8 years ago
Matthew Chen da7dd1b128 Clean up debug scaffolding.
// FREEBIE
8 years ago
Matthew Chen f5cd39ea35 Apply ContactsViewHelper to SelectThreadViewController.
// FREEBIE
8 years ago
Matthew Chen 61f59067b6 Improve contact-related views.
* Add support for contacts with more than one Signal account using ContactAccount class.
* Use OWSTableViewController in contact-related views.
* Let users add non-contacts to groups.
* Improve the "new group" and "edit group" views.
* Add utility methods for displaying alerts.
* Warn users before discarding unsaved changes in "edit group" view.
* Pull out "contact view helper" to de-duplicate common logic among contact-related views.
* Pull out "group view helper" to de-duplicate common logic among group-related views.
* Pull out new base class for view used to add accounts to groups or the block list.

// FREEBIE
8 years ago
Matthew Chen 6ae3a5395e Skip attachment approval dialog for image and video shot by camera.
// FREEBIE
8 years ago
Michael Kirk 48971478dd Allow importing of any file that's not a directory
// FREEBIE
8 years ago
Matthew Chen 89c5f93aad Tweak appearance of "export with Signal" UI.
// FREEBIE
8 years ago
Michael Kirk 822f5c8415 support sending all files
use generic mimetype when file has unknown extension

// FREEBIE
8 years ago
Michael Kirk 93fe122323 display error if user picks directory/bundle e.g. .pxm
// FREEBIE
8 years ago
Michael Kirk 1d91441676 truncate really long file names in the middle
// FREEBIE
8 years ago
Matthew Chen 8a8b10b688 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen d081df9ded Respond to CR.
// FREEBIE
8 years ago
Matthew Chen c84da982ae Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 93eed73530 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 5c0c9b533e Respond to CR.
// FREEBIE
8 years ago
Matthew Chen e75ed5e477 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 6e36ce97a5 Let users share imported files to a thread or contact of their choice.
// FREEBIE
8 years ago
Matthew Chen 3c7574a908 Register Signal to handle a wide variety of common document types.
// FREEBIE
8 years ago
Matthew Chen 788ec4ce01 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen d42588b957 Improve appearance of generic attachments and the attachment approval dialog.
// FREEBIE
8 years ago
Michael Kirk 66e858a35a Validate all picked attachments/ show preview
// FREEBIE
8 years ago
Michael Kirk 4d15fbf2dc cherry-pick (rebased) charlesmchen/stressTesting/Signal/src/ViewControllers/SignalAttachment.swift
// FREEBIE
8 years ago
Michael Kirk 203009d4ef fix compiler warning / idiomatic optional unwrapping
// FREEBIE
8 years ago
Michael Kirk 26b94bf94b Always send a filename
// FREEBIE
8 years ago
Matthew Chen b99984f9d3 Fix the “message view subtitle mis-sized after muting” issue.
// FREEBIE
8 years ago
Michael Kirk 4440183414 translation comment for "group name" field
// FREEBIE
8 years ago
Matthew Chen a0a930aac3 Resolve the menu item conflicts between message view and media view.
// FREEBIE
8 years ago
Matthew Chen 866493c8ed Add icons to attachment action sheet.
// FREEBIE
8 years ago
Michael Kirk ea7c74316e capitalize *all* letters of file extension
// FREEBIE
8 years ago
Michael Kirk 474a6d3253 document picker uses approval dialog
// FREEBIE
8 years ago
Matthew Chen 1acb2d7493 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 9779527cf2 Let users edit group name and avatar by tapping on them in group settings view.
// FREEBIE
8 years ago
Matthew Chen a59f49ceac Resolve the menu item conflicts between message view and media view.
// FREEBIE
8 years ago
Matthew Chen 62e6c9a120 Fix crash unsafely accessing optional media method.
// FREEBIE
8 years ago
Michael Kirk 70d235a670 Choose arbitrary attachments from iCloud/GDrive/Dropbox/etc
// FREEBIE
8 years ago
Michael Kirk b1ea340c36 Callscreen fills buttons to show active state
// FREEBIE
8 years ago
Matthew Chen eb23252c6c Fix timer retain cycle.
// FREEBIE
8 years ago
Matthew Chen 4b2bdd9b52 Use audio attachment player in attachment preview dialog.
// FREEBIE
8 years ago
Matthew Chen 041badd295 Decouple the audio attachment player from the video attachment adapter.
// FREEBIE
8 years ago
Matthew Chen b90b71351f Respond to CR.
// FREEBIE
8 years ago
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
8 years ago
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
8 years ago
Matthew Chen 2b09033dda Show mute status in home view.
// FREEBIE
8 years ago
Matthew Chen b2dd458f12 Fix “muted until” date format.
// FREEBIE
8 years ago
Matthew Chen b2664158b1 Pause animated gifs when offscreen; clean up media views more aggressively.
// FREEBIE
8 years ago
Matthew Chen ee765df4b1 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen e36b5a4602 Improve group members view.
// FREEBIE
8 years ago
Matthew Chen 06f9affc01 Fix segues in conversation settings view.
// FREEBIE
8 years ago
Matthew Chen 2a9ac87568 Fix paste of text.
// FREEBIE
8 years ago
Matthew Chen 499c8d0bc1 Add muting of threads.
// FREEBIE
8 years ago
Matthew Chen d968c899b5 Add muting of threads.
// FREEBIE
8 years ago
Matthew Chen 2ca122f579 Add muting of threads.
// FREEBIE
8 years ago
Matthew Chen 2c286c8b53 Add muting of threads.
// FREEBIE
8 years ago
Matthew Chen c8466912f0 Add muting of threads.
// FREEBIE
8 years ago
Matthew Chen e025b86e75 Rework outgoing message state.
// FREEBIE
8 years ago
Matthew Chen cc766bcc53 Rework outgoing message state.
// FREEBIE
8 years ago
Matthew Chen 66d1a37859 Rework outgoing message state.
// FREEBIE
8 years ago
Matthew Chen 5c20a85974 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen bf9ae552a3 Ignore hardware mute switch during video playback in attachment approval view.
// FREEBIE
8 years ago
Matthew Chen d9ef27d802 Ignore hardware mute switch during video playback in messages view.
// FREEBIE
8 years ago
Matthew Chen 1cf45a26d0 Merge remote-tracking branch 'origin/hotfix/2.10.1' 8 years ago
Matthew Chen 193d9421ce Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 0018d0040b Honor attachment filenames.
// FREEBIE
8 years ago
Matthew Chen 70ac0acc68 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 54d2d85ebb Update SignalAttachment to allow arbitrary attachments.
// FREEBIE
8 years ago
Matthew Chen da13506db1 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen db7cb8d388 Send oversize text messages as attachments.
// FREEBIE
8 years ago
Matthew Chen ebde769161 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 7f5847d2d5 Improve file size formatting in attachment approval dialog.
// FREEBIE
8 years ago
Matthew Chen de735dcf33 Add stubs for audio preview to attachment approval dialog.
// FREEBIE
8 years ago
Matthew Chen fc33b00830 Add animated image preview to attachment approval dialog.
// FREEBIE
8 years ago
Matthew Chen 5d79f43970 Add video preview to attachment approval dialog.
// FREEBIE
8 years ago
Matthew Chen 267462c584 Show block indicator in home view.
* Improve thread safety of home view cells.

// FREEBIE
8 years ago
Matthew Chen 878704cb12 Create block offer when non-contacts send you a message.
// FREEBIE
8 years ago
Matthew Chen c2e94f57ed Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 660e4dd4c4 Show attachment approval dialog for all attachments.
// FREEBIE
8 years ago
Matthew Chen 5bc5e00156 Add debug UI action to send 1,000 messages so we can “load test” message view’s perf.
// FREEBIE
8 years ago
Matthew Chen 1ac487835a Reload data and invalidate layout whenever message view returns from background.
// FREEBIE
8 years ago
Matthew Chen 0a8c9e5622 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 4e3fbac107 Add explanation messages to the “block user alert” and the block section of the 1:1 conversation settings view.
// FREEBIE
8 years ago
Matthew Chen f503d7f93c Stay scrolled to the bottom during in conversation view during updates.
// FREEBIE
8 years ago
Michael Kirk 032cf0d953 sharing via message view is legible
// FREEBIE
8 years ago
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
8 years ago
Michael Kirk fb53a3258d clarify what to do on the verification screen
// FREEBIE
8 years ago
Matthew Chen 79a2612dbe Fix audio playback.
// FREEBIE
8 years ago
Michael Kirk 91fc6b4d04 Stretch to fit wider message counts
// FREEBIE
8 years ago
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
8 years ago
Michael Kirk 6b0eb7f9b5 Use numeric pad for verifiation code entry
No need for special phone characters like: *, -, +

// FREEBIE
8 years ago
Matthew Chen 6fde2852b1 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen dc78e32bbf Reload data and invalidate layout whenever message view will appear.
// FREEBIE
8 years ago
Matthew Chen a93aad5124 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 4cd1684ded Don’t let user block themselves.
// FREEBIE
8 years ago
Matthew Chen 372d6b9bfd Don’t let user block themselves.
// FREEBIE
8 years ago
Matthew Chen 1ab4417687 Fix paste when pasteboard has multiple items.
// FREEBIE
8 years ago
Matthew Chen 3ac1e75b5f Ensure keyboard doesn't hide "safety numbers changed" interaction.
// FREEBIE
8 years ago
Matthew Chen 5feca42821 Reformat phone number if user changes country code.
// FREEBIE
8 years ago
Michael Kirk 9d0c76ca56 debug action to reset session
// FREEBIE
8 years ago
Michael Kirk 033591aeca Remove unused code
// FREEBIE
8 years ago
Michael Kirk caabae0024 Add new debug method to delete session
// FREEBIE
8 years ago
Matthew Chen 554125aeeb Dismiss keyboard if user scrolls in “new 1:1 conversation” view.
// FREEBIE
8 years ago
Michael Kirk cc16b9c893 CR nit: add assert
// FREEBIE
8 years ago
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
8 years ago
Matthew Chen 74820d9ba9 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen a1bd2f66f8 Fix invalid assert in the OWS table views.
// FREEBIE
8 years ago
Matthew Chen fd86495e26 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 8823b2884a Refine the “block list” view.
// FREEBIE
8 years ago
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
8 years ago
Matthew Chen b6f944f3d3 Tweak appearance of “add to block list” view.
// FREEBIE
8 years ago
Michael Kirk 4494a95a62 Block list is two words. Update code/comments/constants
// FREEBIE
8 years ago
Matthew Chen e0c7457eca Refine appearance of “add to block list” view.
// FREEBIE
8 years ago
Matthew Chen b3d6a82c4f Show blocked users in “add to block list” view.
// FREEBIE
8 years ago
Matthew Chen f56227ce26 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen af6e51f83c Make local copy of contact list.
// FREEBIE
8 years ago
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
8 years ago
Matthew Chen 7273e6faa5 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 7f21a1bf62 Dismiss “block state indicator” if user scrolls message view.
// FREEBIE
8 years ago
Matthew Chen c500e7890f Improve completion handling of block actions.
// FREEBIE
8 years ago
Matthew Chen 9c9060203e Block actions in message view for blocked group conversations.
* Add block status indicator view.

// FREEBIE
8 years ago
Matthew Chen 8c347699bb Block actions in message view for blocked contact conversations.
// FREEBIE
8 years ago
Matthew Chen 71007cc3d1 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen dcb7eef3fc Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 54cd8cfa3c Add blacklist controls to 1:1 conversation view.
// FREEBIE
8 years ago
Matthew Chen 5fa1a3630f Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 8dadc3ba22 Don’t update contacts in the blacklist views.
// FREEBIE
8 years ago
Matthew Chen 6c1d46c4d7 Use contact names where possible in the block list view.
// FREEBIE
8 years ago
Matthew Chen a7296db1fe Add contacts list to “add blocked number” view.
// FREEBIE
8 years ago
Matthew Chen 2e0c95c379 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen db31454320 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 89e244ee0a Update to reflect changes to SSK.
// FREEBIE
8 years ago
Matthew Chen 8578390ee9 Clean up blocklist views.
// FREEBIE
8 years ago
Matthew Chen 922d48904f Refine BlockListViewController and AddToBlockListViewController.
// FREEBIE
8 years ago
Matthew Chen 271cc6f07e Sketch out BlockListViewController and AddToBlockListViewController.
// FREEBIE
8 years ago
Matthew Chen a155df161f Pull out OWSTableViewController.
// FREEBIE
8 years ago
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
8 years ago
Michael Kirk d2732751ad New debug action: print sessions
// FREEBIE
8 years ago
Matthew Chen 7306803ae7 Add explicit calling code state to registration view.
// FREEBIE
8 years ago
Matthew Chen d12a582ee3 Rename source directories with a space in their name.
// FREEBIE
8 years ago