Commit graph

457 commits

Author SHA1 Message Date
Matthew Chen b62a43217f Fix profile avatar downloads. 2018-03-02 17:34:03 -05:00
Matthew Chen 15921fa0b5 Fix profile avatar downloads. 2018-03-02 17:34:03 -05:00
Matthew Chen dfa082238e Fix profile avatar downloads. 2018-03-02 17:34:03 -05:00
Michael Kirk 1d7e2e367e Fix migration to work with fallback notifications as well
// FREEBIE
2018-03-02 17:02:15 -05:00
Michael Kirk 46d944740b Make default audio tone more prominent
Label Note as (default)
Move it to the second item in the list, just after "None"

// FREEBIE
2018-03-02 16:32:15 -05:00
Matthew Chen 59c745756a Clean up codebase. 2018-03-02 15:05:14 -05:00
Matthew Chen 3acdd84398 Elaborate request factory. 2018-03-02 15:05:14 -05:00
Matthew Chen 004479a2ce Elaborate request factory. 2018-03-02 15:05:14 -05:00
Matthew Chen c17a819366 Elaborate request factory. 2018-03-02 15:05:14 -05:00
Matthew Chen a87b79341f Respond to CR. 2018-03-02 11:10:09 -05:00
Matthew Chen baf6fcc535 Add 2FA registration view. 2018-03-02 10:55:00 -05:00
Matthew Chen e12a1e984a Work on two-factor auth settings UI. 2018-03-01 15:38:59 -05:00
Matthew Chen 1f6cbd399e Sketch out 2FA feature. 2018-03-01 15:38:59 -05:00
Michael Kirk fa37fdd300 Fix legacy sounds for voip pushes
This way users who were unknowingly upgraded in the night will continue
to hear the ka-klunk until they've seen the splash screen announcing the
feature.

// FREEBIE
2018-03-01 10:28:05 -05:00
Michael Kirk e5ab6f101b Clean up audio files
- remove unused classic-ringtone
- move classic with the rest of the message sounds

// FREEBIE
2018-03-01 10:28:05 -05:00
Matthew Chen bf48ccd4ad Merge remote-tracking branch 'origin/hotfix/2.20.1' 2018-02-27 15:45:17 -05:00
Michael Kirk cf6dfe08bb Custom audio notifications upgrade experience
TODO: update art
2018-02-27 15:14:20 -05:00
Matthew Chen b1dd325ce8 Revert "Merge branch 'charlesmchen/debugLogs' into hotfix/2.20.1"
This reverts commit de5d17a396, reversing
changes made to d32e90c3d1.
2018-02-27 14:52:24 -05:00
Matthew Chen e4ee3e0007 Revert "Respond to CR."
This reverts commit 45201d45ed.
2018-02-27 14:52:21 -05:00
Matthew Chen 45201d45ed Respond to CR. 2018-02-27 11:33:47 -05:00
Matthew Chen 47a6d844c9 Refine handling of unsafe filename characters. 2018-02-27 09:43:26 -05:00
Matthew Chen 920c2b1d76 Rework log upload. 2018-02-27 09:27:09 -05:00
Michael Kirk f1f7f87457 Use aifc files for all notification sounds so we can confidently copy
them over the statically named "NewMessage.aifc" which is used by
fallback notifications

// FREEBIE
2018-02-26 15:58:09 -05:00
Michael Kirk e020b0ff99 Persist default sound so we can use it for fallback notifications
// FREEBIE
2018-02-26 15:41:35 -05:00
Michael Kirk 658b8c3223 CR: typos and doc changes
// FREEBIE
2018-02-26 15:19:52 -05:00
Michael Kirk 5959cdf070 Simplify call privacy settings
We've long allowed users to configure what shows up in message
notifications:

- name: content (by default)
- just name (no content)
- generic notification (no name nor content)

Now we're dual purposing that setting to apply to calls. If someone
doesn't want to show names in the message notifications, presumably also
don't want that name showing up in the call log.

Also, since the earlier CallKit/iCloud issues had been addressed before
iOS11, we upgrade all iOS11 users to the more intuitive CallKit
interface.

Also: introduce "use system call logs" toggle when available. It will be
enabled by default, but we disable it for legacy users who'd explicitly
opted *out* of CallKit.

// FREEBIE
2018-02-26 15:19:52 -05:00
Matthew Chen 5b9ab0cf5d Auto-disable CallKit privacy in iOS 11 and later. 2018-02-26 15:19:25 -05:00
Matthew Chen 38ff82ab97 Rebrand OWSAudioPlayer. 2018-02-26 14:47:57 -05:00
Matthew Chen 306af29d6f Restore "sonar ping" for "call connecting." 2018-02-26 14:47:57 -05:00
Matthew Chen 32b87d0e58 Remove custom ringtones. 2018-02-26 14:47:57 -05:00
Matthew Chen e54cf313e8 Use quiet versions of the notification sounds in foreground. 2018-02-26 14:46:17 -05:00
Matthew Chen 55b9aa4089 Preserve 'classic' Signal notification and ringtone for legacy users. 2018-02-26 14:46:17 -05:00
Matthew Chen 390cf3c80a Revive the 'classic' Signal notification and ringtone. 2018-02-26 14:46:17 -05:00
Matthew Chen 62af7ddc15 Add "none" option for sounds. Use AVPlayer for everything. 2018-02-26 14:46:17 -05:00
Matthew Chen 99aedca45f Strip out special casing for pre-iOS 9 users. 2018-02-26 14:13:38 -05:00
Matthew Chen 899799af92 Improve sound settings view. 2018-02-23 12:53:43 -05:00
Matthew Chen 5e8f3086de Update call sounds. 2018-02-23 12:53:43 -05:00
Matthew Chen a0f4723fa2 Update call sounds. 2018-02-23 12:53:43 -05:00
Matthew Chen a44a117612 Add custom ringtone sounds. 2018-02-23 12:53:43 -05:00
Matthew Chen 396fe82707 Add UI for editing per-thread notification sounds. 2018-02-23 12:53:42 -05:00
Matthew Chen dc8b8ca0bd Add per-thread custom notification sounds. 2018-02-23 12:53:42 -05:00
Matthew Chen 9aa02489b8 Custom notification sounds in local notifications. 2018-02-23 12:53:42 -05:00
Matthew Chen a837c5d41b Custom notification sounds. 2018-02-23 12:53:42 -05:00
Matthew Chen 60d839d7a4 Custom notification sounds. 2018-02-23 12:53:42 -05:00
Matthew Chen 5c3f6b0ee5 Custom notification sounds. 2018-02-23 12:53:42 -05:00
Michael Kirk 5af1123219 Fix freeze in host app after "dismissing" select thread VC
We must call these completion handlers whenever we exit the SAE

// FREEBIE
2018-02-23 10:15:34 -05:00
Matthew Chen 152c570900 Respond to CR. 2018-02-22 12:07:11 -05:00
Matthew Chen 5444fc73b0 Improve handling of db modifications while conversation view is not observing. 2018-02-22 11:46:08 -05:00
Matthew Chen 706006539f Improve the robustness of the migration logic. 2018-02-20 20:16:12 -05:00
Matthew Chen d91507d897 Improve the robustness of the migration logic. 2018-02-20 17:37:14 -05:00
Matthew Chen 7132179c5c Fix handling of HEIF/HEIC when attaching image "as document." 2018-02-20 13:51:55 -05:00
Michael Kirk 707ab5f5a8 Minimize changes around call audio activity
// FREEBIE
2018-02-16 14:00:15 -08:00
Michael Kirk 4dd1c7813a Instrument calls to ensure audio session is maintained
// FREEBIE
2018-02-16 14:00:15 -08:00
Michael Kirk abb51b565a Don't de-activate audio sesion when other audio activities are happening
// FREEBIE
2018-02-16 14:00:15 -08:00
Matthew Chen 283fe17649 Apply Indic script fixes to SAE and master. 2018-02-16 16:50:14 -05:00
Matthew Chen 6935298f6f Improve handling of the not migrated case. 2018-02-16 15:19:24 -05:00
Matthew Chen 03f6d473a3 Fix issues around profile updates. 2018-02-16 15:16:38 -05:00
Matthew Chen d648a258d1 Merge branch 'hotfix/2.19.7' 2018-02-16 10:49:52 -05:00
Matthew Chen 3ab33b997e Respond to CR. 2018-02-15 14:08:22 -05:00
Matthew Chen 33cb8b7e4c Revert "Surface error messages in SAE as alerts."
This reverts commit bd51ae1646.
2018-02-15 13:55:49 -05:00
Matthew Chen bd51ae1646 Surface error messages in SAE as alerts. 2018-02-15 13:55:39 -05:00
Matthew Chen 9508761f09 Respond to CR. 2018-02-14 14:17:30 -05:00
Matthew Chen 4b62faf2f8 Aggressively nag iOS 8 users to upgrade iOS. 2018-02-14 14:15:23 -05:00
Michael Kirk 3d5f7e6bf3 Clean up logging
- tag all log lines for easier filtering
- use up-to-date database path

// FREEBIE
2018-02-14 09:16:42 -08:00
Matthew Chen 48b6c3dafb Refine message date/time formatting. 2018-02-13 15:02:29 -05:00
Michael Kirk 44678e3951 CR: weak capture and clearer comments
// FREEBIE
2018-02-13 08:29:58 -08:00
Michael Kirk debd556e09 Fix notification % escaping, debug UI
Consolidated the notifications debug UI (and fixed it) to make testing
this a bit easier.

// FREEBIE
2018-02-13 08:29:58 -08:00
Joshua Lund 2c18a75d12 Update to the new GitHub organization name 2018-02-13 10:52:07 -05:00
Matthew Chen ba42ac73d8 Revisit TODOs in the SAE work. 2018-02-12 22:33:26 -05:00
Matthew Chen d54f6aba0a Refine SAE UI. 2018-02-12 22:29:01 -05:00
Matthew Chen 114df18372 Refine SAE UI. 2018-02-12 22:29:01 -05:00
Michael Kirk 5e95c90606 Fix "caption toolbar not showing" for RTL
// FREEBIE
2018-02-12 13:29:21 -08:00
Matthew Chen 862172072c Respond to CR. 2018-02-09 10:31:29 -05:00
Matthew Chen 6b357f9445 Respond to CR. 2018-02-09 10:31:29 -05:00
Matthew Chen 43765ef3b5 Respond to CR. 2018-02-09 10:31:29 -05:00
Matthew Chen d3e16583eb Add protocol context to protocol kit. 2018-02-09 10:31:29 -05:00
Matthew Chen 074046b98e Add protocol context to protocol kit. 2018-02-09 10:31:29 -05:00
Matthew Chen 39e353503f Add protocol context to protocol kit. 2018-02-09 10:31:29 -05:00
Michael Kirk a1d3073705 Cannot open settings from share extension
// FREEBIE
2018-02-06 18:50:36 -08:00
Michael Kirk c646f76335 Garther audio concerns, clean up session when done
- sync speakerphone state manipulated from system call screen
  - Revert audio session after call failure, ensures media plays out of
    speaker after placing a failing call.
  - Replace notification with delegate pattern since we're already using
    delegate pattern here.
- Fixes voiceover accessibility after voice memo
- Avoid audio blip after pressing hangup
- Rename CallAudioSession -> OWSAudioSession
  Going to start using it for other non-call things since we want to
  gather all our audio session concerns.
- Resume background audio when done playing video
  - Extract OWSVideoPlayer which ensures audio is in proper state before
    playback
  - Move recording session logic to shared OWSAudioSession
  - Deactivate audio session when complete

// FREEBIE
2018-02-06 18:45:51 -08:00
Michael Kirk 0f9dd46b91 Fix attachment approval layout on iPhoneX
convert captioning toolbar to autolayout in the process

// FREEBIE
2018-02-02 11:12:18 -08:00
Matthew Chen 4bfdef520a Respond to CR. 2018-01-30 12:39:27 -05:00
Matthew Chen be1fde905c Don't mark app as ready until all version migrations are done. 2018-01-30 11:27:44 -05:00
Matthew Chen aeeef43416 Register all database views asynchronously. 2018-01-30 10:30:28 -05:00
Matthew Chen b21f793756 Register all database views asynchronously. 2018-01-30 10:30:28 -05:00
Matthew Chen 5cf89a0f3d Register all database views asynchronously. 2018-01-30 10:30:28 -05:00
Matthew Chen 9c84bdb105 Add support for images as documents. 2018-01-30 10:12:08 -05:00
Michael Kirk 456a931b9f Fix block handling for ContactThreads, previously it only worked for
recipients without a thread.

// FREEBIE
2018-01-29 09:57:04 -08:00
Matthew Chen 41b7a8dd75 Fix build breakage. 2018-01-25 16:09:38 -05:00
Matthew Chen e2fa695fc4 Fix build break. 2018-01-25 15:57:16 -05:00
Matthew Chen 79ee6fa318 Add Debug UI around sharing UIImage. 2018-01-25 15:17:30 -05:00
Matthew Chen 6a7f06f940 Respond to CR. 2018-01-25 13:53:39 -05:00
Matthew Chen 56ef293ed1 Clean up ahead of PR. 2018-01-25 13:27:17 -05:00
Matthew Chen b61c716ea7 Clean up ahead of PR. 2018-01-25 13:27:17 -05:00
Matthew Chen d1c17167c6 Don't send text files as text messgaes. 2018-01-25 13:27:16 -05:00
Matthew Chen 64e4f054b8 Add message approval view. 2018-01-25 13:27:16 -05:00
Matthew Chen e905098fb1 Add message approval view. 2018-01-25 13:27:16 -05:00
Matthew Chen 069587b150 Add message approval view. 2018-01-25 13:27:16 -05:00
Matthew Chen 9845ef6dac Add message approval view. 2018-01-25 13:26:40 -05:00
Matthew Chen 3cfc778358 Add message approval view. 2018-01-25 13:26:40 -05:00
Matthew Chen 2af858c529 Add message approval view. 2018-01-25 13:26:39 -05:00
Matthew Chen 979386ee9e Improve handling of text and url shares. 2018-01-25 13:26:10 -05:00
Matthew Chen 5770a18b08 Handle text shares like URLs. 2018-01-25 13:26:10 -05:00
Matthew Chen 9718387af5 Send URLs as text messages. 2018-01-25 13:26:10 -05:00
Matthew Chen 085975ebe9 Prepopulate caption field with URL. 2018-01-25 13:26:10 -05:00
Matthew Chen 2e8a53b4a5 Don't add captions to text messages. 2018-01-25 13:26:10 -05:00
Matthew Chen 992e926142 Unpack oversize text messages if possible. 2018-01-25 13:26:10 -05:00
Matthew Chen b9bd21e73f Improve presentation of text attachments in attachment approval view. 2018-01-25 13:24:22 -05:00
Matthew Chen 6a80db7844 Enable support for sharing urls in SAE. 2018-01-25 13:23:00 -05:00
Matthew Chen d8f72dbec5 Clean up ahead of PR. 2018-01-25 11:07:22 -05:00
Matthew Chen 0cc7f3e00e Clean up ahead of PR. 2018-01-25 11:00:38 -05:00
Matthew Chen 2375cc2f76 Add support for key specs. 2018-01-25 11:00:38 -05:00
Matthew Chen 5d422e03d1 Add support for key specs. 2018-01-25 11:00:38 -05:00
Matthew Chen c5079ed3d7 Add support for key specs. 2018-01-25 11:00:38 -05:00
Matthew Chen 224c24e685 Use key spec for databases. 2018-01-25 11:00:38 -05:00
Matthew Chen a05acd0174 Add protocol context to protocol kit. 2018-01-25 11:00:38 -05:00
Matthew Chen d0f1706a49 Modify YapDatabase to read converted database. 2018-01-25 11:00:38 -05:00
Michael Kirk 3cd1b2c96c WIP comment 2018-01-25 11:00:38 -05:00
Michael Kirk acc97b197b Properly force checkpoint at end of conversion
// FREEBIE
2018-01-25 11:00:38 -05:00
Matthew Chen eadb64b75a Elaborate test suite around database conversion. 2018-01-25 11:00:38 -05:00
Matthew Chen 9801689c0e Modify YapDatabase to read converted database. 2018-01-25 11:00:38 -05:00
Michael Kirk 0a2439937b cleanup
// FREEBIE
2018-01-25 11:00:38 -05:00
Matthew Chen 45e44ca085 Modify YapDatabase to read converted database, part 3. 2018-01-25 11:00:38 -05:00
Matthew Chen d7a43d00d7 Modify YapDatabase to read converted database, part 2. 2018-01-25 11:00:38 -05:00
Matthew Chen 173da64bc4 Modify YapDatabase to read converted database, part 1. 2018-01-25 11:00:38 -05:00
Matthew Chen 3b681aba36 Successfully convert database. 2018-01-25 11:00:38 -05:00
Matthew Chen cc15092eb7 Resolve issues around database conversion. 2018-01-25 11:00:38 -05:00
Michael Kirk 11a709a621 WIP: set plaintext header length
Fix test to try to convert test db, previously it was using the
non-existent TSStorage database.

// FREEBIE
2018-01-25 11:00:38 -05:00
Michael Kirk 71dc7f55d3 Copy DB setup / keying from Yap into conversion
// FREEBIE
2018-01-25 11:00:38 -05:00
Matthew Chen 1bff0f2b0e Incomplete commit starting work on loading databases for conversion. 2018-01-25 11:00:38 -05:00
Matthew Chen 5ba5b763e4 Add tests around database conversion. 2018-01-25 11:00:38 -05:00
Matthew Chen dc73342573 Convert databases if necessary. 2018-01-25 11:00:38 -05:00
Michael Kirk 886c0174a8 Rename color per code review
// FREEBIE
2018-01-22 16:53:55 -05:00
Michael Kirk baa312f449 Timer button with duration label
// FREEBIE
2018-01-22 10:28:51 -05:00
Michael Kirk 5c2075cdb6 Show disappearing messages timer in share extension
// FREEBIE
2018-01-21 20:31:40 -05:00
Michael Kirk 3ca5ec2726 Ensure media-library permissions when accessing media library
// FREEBIE
2018-01-18 13:37:11 -05:00
Michael Kirk 5dde17d939 Show approval/caption view in app.
ApprovalView/Captioning is shown for:
- Images/Videos from Library
- Images/Video from Camera
- Document Picker
- GIFs

Voice notes are intentionally not captionable.

Also, in main app, hide status bar when ApprovalView is presented

// FREEBIE
2018-01-17 18:19:48 -05:00
Michael Kirk 94d58b88b8 Play video inline in approval view
Previously we launched the MPMoviePlayerController

// FREEBIE
2018-01-16 17:57:14 -05:00
Michael Kirk 0c6a42003f clang-format after RI
// FREEBIE
2018-01-16 15:27:53 -05:00
Michael Kirk a423fe8a0e WIP Merge tag '2.19.4.4'
- restore video playback in fullscreen

This was a large merge, so I'm opting to make some changes in separate
commits.
2018-01-16 15:25:58 -05:00
Matthew Chen 2b528ad894 Don't use mainApplicationState in business logic. 2018-01-12 14:24:35 -05:00
Matthew Chen 17907dca10 Clean up ahead of PR. 2018-01-12 10:23:54 -05:00
Matthew Chen 15b8e58324 Retain changes from session database branch. 2018-01-12 10:23:54 -05:00
Matthew Chen 980b3d25a7 Rework "export backup" UI. 2018-01-11 10:42:27 -05:00
Matthew Chen 58e9252689 Let users send to non-contacts, non-threads in SAE. 2018-01-10 17:56:30 -05:00
Matthew Chen 4d6ee9e2de Let users send to non-contacts, non-threads in SAE. 2018-01-10 17:56:30 -05:00
Matthew Chen 9e89502fdb Let users send to non-contacts, non-threads in SAE. 2018-01-10 17:56:30 -05:00
Matthew Chen e77c3e6717 Retain changes from session database branch. 2018-01-10 12:18:23 -05:00
sdkjfhsdkjhfsdlkjhfsdf 3a6ddd4bf8 CR: cleanup
// FREEBIE
2018-01-02 11:24:36 -06:00
sdkjfhsdkjhfsdlkjhfsdf 6e2d9c8141 identity change vs. share extension
// FREEBIE
2018-01-02 11:24:36 -06:00
sdkjfhsdkjhfsdlkjhfsdf 6b5883dc10 Don't resize attachment view when switching between alerts.
// FREEBIE
2018-01-02 11:24:36 -06:00
sdkjfhsdkjhfsdlkjhfsdf 4e6816ec5e Code cleanup
// FREEBIE
2017-12-22 13:55:05 -06:00
sdkjfhsdkjhfsdlkjhfsdf 14723f3e7f Fix profile avatar flicker
- We were clobbering our saved avatar filepath.
- Our "should notify" check was too aggressive.
- Only fetch profiles when entering a conversation.
- Only fetch profiles in main app

Also added (a little) debounce time to debug profile fetching.

// FREEBIE
2017-12-21 19:34:45 -06:00
sdkjfhsdkjhfsdlkjhfsdf 01fa3c89cc CR: cleanup comments, extract callback into method
// FREEBIE
2017-12-21 10:36:42 -06:00
sdkjfhsdkjhfsdlkjhfsdf b87079d4b4 Sharing attachment shows progress / retry dialog
// FREEBIE
2017-12-20 20:57:17 -06:00
sdkjfhsdkjhfsdlkjhfsdf 42ea1dfbbe CR: more margin, match button size to default text field, fix layout
when rotated.

There was an issue with captions changing line-count when rotated.

// FREEBIE
2017-12-20 16:58:51 -06:00
sdkjfhsdkjhfsdlkjhfsdf 7907a64dfe move gradient up with keyboard
// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf 653a272b54 Don't obscure attachment when keyboard is popped.
// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf 38d94952f7 Shadow for Send button, clean up color accessors
// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf cfa147831a "Done" button for caption toolbar
// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf 9eb4178c6f style for captioning toolbar
// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf 513e33b0fd Cleanup before code review
// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf 2c20cb9e7b make sure mediaview isn't too tall in detail view
// FREEBIE
2017-12-20 14:26:53 -06:00
sdkjfhsdkjhfsdlkjhfsdf 0e9c9a9bb3 Separate gestures for text/vs media
// FREEBIE
2017-12-20 14:26:53 -06:00
Michael Kirk e20f44024c WIP: Support sending attachment captions
Looks fine on other clients, but locally we don't display the caption.

// FREEBIE
2017-12-20 14:26:53 -06:00
Michael Kirk 0964c16417 cleanup, plus ill fated attempt to offset content beyond keyboard height.
Probably should just pin scrollview above initial toolbar height. I
think it's somewhat convoluted because of the scroll view zoom
functionality that we already use in this view.

// FREEBIE
2017-12-20 14:26:53 -06:00
Michael Kirk 26be69975a cleanup constraint based layout 2017-12-20 14:26:53 -06:00
Michael Kirk 3a078c831d lays out in iOS11, but doesn't resize 2017-12-20 14:26:53 -06:00
Michael Kirk 03e786a145 input toolbar looks good on iOS9/10, but totally broken on 11
// FREEBIE
2017-12-20 14:26:53 -06:00
Michael Kirk 96906440a7 remove height animation, ensure growing text area has content in proper
place.

// FREEBIE
2017-12-20 14:26:53 -06:00
Michael Kirk 562e706ec9 animate height change, but looks goofy 2017-12-20 14:26:53 -06:00
Michael Kirk a5c5dd3f96 WIP, extract subclass 2017-12-20 14:26:53 -06:00
Michael Kirk 9ee9a0efeb resizing input accessory view.
// FREEBIE
2017-12-20 14:26:52 -06:00
Michael Kirk f9524b02e2 multiline must be textview, not textfield
// FREEBIE
2017-12-20 14:26:52 -06:00
Michael Kirk 57a5e62db8 WIP - attachment caption 2017-12-20 14:26:52 -06:00
sdkjfhsdkjhfsdlkjhfsdf 76481a86a5 stabalize sort for same-named SignalAccounts
// FREEBIE
2017-12-20 13:49:15 -06:00
Matthew Chen 6b0e3508a5 Respond to CR. 2017-12-20 11:28:07 -05:00
Matthew Chen 245304116f Respond to CR. 2017-12-20 11:19:09 -05:00
Matthew Chen fe67cd924c Rework database view registration. 2017-12-19 11:42:06 -05:00
Matthew Chen 9258b0883e Clean up TSStorageManager usage. 2017-12-19 11:41:31 -05:00
Matthew Chen d52eba739d Clean up TSStorageManager usage. 2017-12-19 11:41:31 -05:00
Matthew Chen 85686d3144 Continue TSStorageManager refactor. 2017-12-19 11:41:30 -05:00
Matthew Chen 9a990b58e8 Respond to CR. 2017-12-19 11:38:25 -05:00
Matthew Chen 92b870ca12 Clean up ahead of PR. 2017-12-19 11:16:01 -05:00
Matthew Chen 5dcf4b3bbc Clean up ahead of PR. 2017-12-19 11:16:01 -05:00
Matthew Chen a29c4ce5d6 Pull out OWSStorage base class for TSStorageManager. 2017-12-19 11:16:01 -05:00
Michael Kirk 157bf00410 Merge branch 'hotfix/2.19.3' 2017-12-17 14:02:03 -05:00
Matthew Chen 0c9d9ba679 Fix issues around cross process db changes. 2017-12-15 11:11:57 -05:00
Matthew Chen 571840b1dc Update YapDatabase. 2017-12-15 11:11:04 -05:00
Michael Kirk 4f06518539 Merge tag '2.19.3.1' 2017-12-14 16:21:41 -05:00
Michael Kirk 3affb07a11 post-merge formatting fixup
// FREEBIE
2017-12-14 11:43:27 -05:00
Michael Kirk 16448e2a0b Merge tag '2.19.3.0' 2017-12-14 11:42:57 -05:00
Michael Kirk 6fb5990faa Don't zoom for audio/generic attachments
// FREEBIE
2017-12-12 13:03:53 -05:00
Michael Kirk 73b215229f Fixup approval view for audio and generic attachments
// FREEBIE
2017-12-12 12:55:27 -05:00
Michael Kirk 813f4e474e Respond to CR
// FREEBIE
2017-12-12 11:09:39 -05:00
Michael Kirk 8996741277 DocumentPicker converts to mp4 when necessary
// FREEBIE
2017-12-11 20:34:47 -05:00
Michael Kirk 031e40d090 Use SignalAttachment logic in conversation view too
// FREEBIE
2017-12-11 20:16:34 -05:00
Michael Kirk 56f1bf0305 cleanup 2017-12-11 19:37:49 -05:00
Michael Kirk 90e9b4a4f2 WIP - send all video types 2017-12-11 14:05:55 -05:00
Michael Kirk 538b3e5fd5 Async API for video export
// FREEBIE
2017-12-11 14:04:26 -05:00
Michael Kirk 21fd7b040e Ensure sent video is mp4
// FREEBIE
2017-12-11 14:03:40 -05:00
Michael Kirk d3e7c99a63 Attachment approval: cancel/confirm to top/bottom toolbars
- avoid double-submit by disabling after hitting send.
- Animate SAE dismissal as modal
  Requires hiding the load view
- attachment is centered in screen
- add gradient to ensure controls are visible
- Fix clamp constraints - I think this was a typo
  Otherwise we couldn't show an image which was 1" wide by 2" tall
- set max zoom, hide scroll indicators
- use media view
- slower panning feels right
- white send button
- can share GIF, static, and sort of video...
- Play button for attachment approval
  - move to image assets so we can use it in SAE
  - slightly larger button for full-screen approval view
  - don't launch redundant fullscreen UI for images when in approval view
- fix scrollOffset in AttachmentApproval
- consolidate view initialization logic in loadView and fix white background
- CR: more legible arithmetic

// FREEBIE
2017-12-11 13:58:03 -05:00
Matthew Chen 8642a708e7 Respond to CR. 2017-12-11 12:37:47 -05:00
Matthew Chen 429312523f Simplify OWSUserProfile's "apply changes" logic using model diffing. 2017-12-11 12:28:28 -05:00
Matthew Chen ee92efd4a8 Don't emit "user profile changed" notifications if nothing changed. 2017-12-11 12:28:28 -05:00
Matthew Chen f684482c54 Don't emit "user profile changed" notifications if nothing changed. 2017-12-11 12:28:28 -05:00
Matthew Chen 7b4aa4056c Don't emit "user profile changed" notifications if nothing changed. 2017-12-11 12:28:28 -05:00
Matthew Chen 97ce1a6675 Rework user profile saves; block SAE if no local user profile key. 2017-12-11 12:28:28 -05:00
Matthew Chen 3ea901044a Rework thread safety in profile manager. 2017-12-11 12:28:28 -05:00
Matthew Chen 74efcb9041 Rework thread safety in profile manager. 2017-12-11 12:28:28 -05:00
Matthew Chen ee300590e3 Rework thread safety in profile manager. 2017-12-11 12:28:28 -05:00
Matthew Chen 911c4d380b Rework thread safety in profile manager. 2017-12-11 12:28:28 -05:00
Matthew Chen bf09c805b9 Respond to CR. 2017-12-11 11:27:53 -05:00
Matthew Chen c918279597 Convert image attachment thresholds to be based on file size. 2017-12-11 10:37:20 -05:00
Matthew Chen 80ae5e0fcf Respond to CR. 2017-12-11 10:37:20 -05:00
Matthew Chen 11b4848530 Respond to CR. 2017-12-11 10:37:20 -05:00
Matthew Chen 84061cca9f Change image resizing/quality behavior, preferring smaller images in the common case. 2017-12-11 10:37:20 -05:00
Matthew Chen 55aa5eef6c Clean up ahead of PR. 2017-12-11 10:37:20 -05:00
Matthew Chen 125aabb0a3 Change image resizing/quality behavior, preferring smaller images in the common case. 2017-12-11 10:37:20 -05:00
Michael Kirk d9cca77e23 update header references
// FREEBIE
2017-12-08 13:32:52 -05:00
Michael Kirk 23014f9ea4 Keep header affixed to navbar.
// FREEBIE
2017-12-08 11:40:59 -05:00
Michael Kirk 3ecf0a7537 Cancelling dismisses share extension, remove "import with signal"
Usinig the new ShareViewDelegate to dismiss the share extension, might
have broken the "import with signal" functionality. But because we
want to remove it anyway, I've done that now, rather than fix it up.

// FREEBIE
2017-12-07 17:12:03 -05:00
Matthew Chen f7bcf1d04d Fix tests. 2017-12-07 14:44:38 -05:00
Matthew Chen 1be828574d Respond to CR. 2017-12-07 14:33:54 -05:00
Matthew Chen 36703d3bbd Add asserts around Swift singletons. 2017-12-07 13:58:27 -05:00
Matthew Chen 7a1e47cd26 Add asserts around Swift singletons. 2017-12-07 13:57:45 -05:00
Matthew Chen 8312614cf7 Respond to CR. 2017-12-07 13:53:13 -05:00
Matthew Chen 99f0b9d3e8 Fix issues around statics. 2017-12-07 12:34:02 -05:00
Michael Kirk 0429836ff9 CR: rename keyWindow -> keyReferenceView, split long line
// FREEBIE
2017-12-07 10:39:44 -05:00
Michael Kirk 3f6f881d3f Use assets from duplicated main bundle
// FREEBIE
2017-12-07 10:14:30 -05:00
Michael Kirk eca19e5874 Reconcile MediaMessageView zoom behavior with AppExtension
Previously it was predicated on UIApplication.shared

// FREEBIE
2017-12-07 10:14:30 -05:00
Michael Kirk 3eceb86371 Show alert if we fail to build the attachment
// FREEBIE
2017-12-07 10:14:30 -05:00
Michael Kirk 89b9887f1d Make DeviceSleepManager extension compatible
// FREEBIE
2017-12-07 10:13:47 -05:00
Michael Kirk e20072ff2b CR: remove bundle specific image assets
// FREEBIE
2017-12-07 10:13:06 -05:00
Michael Kirk 56fe9d057d Attachment Approval
// FREEBIE
2017-12-07 10:13:06 -05:00
Michael Kirk a58f1f385c Share a photo from photos app
Shows the conversation picker, and sends the attachment to that
conversation.

There's still a lot TODO

-[ ] resolve JSQ dependency
-[ ] properly wait for app to load
-[ ] dismiss share extension after send is complete
-[ ] support non jpeg file types
-[ ] Fix device sleep manager

// FREEBIE
2017-12-07 10:13:06 -05:00
Matthew Chen 848f055da1 Add SAE error views. 2017-12-06 21:38:53 -05:00
Matthew Chen 310cf1330d Continue conversion of app setup. 2017-12-06 10:38:57 -05:00
Matthew Chen 69e0bcd308 Fix tests. 2017-12-06 10:36:12 -05:00
Matthew Chen e7bd33df45 Fix tests broken by SAE. 2017-12-06 10:36:12 -05:00
Matthew Chen 150f417a5e Clean up ahead of PR. 2017-12-05 11:32:19 -05:00
Matthew Chen 9da165b846 Continue conversion of app setup. 2017-12-05 11:19:11 -05:00
Matthew Chen ce899edf10 Respond to CR. 2017-12-05 10:44:11 -05:00
Matthew Chen 2eba371656 Clean up ahead of PR. 2017-12-05 10:29:29 -05:00
Matthew Chen b4e8df79da Migrate environment to SignalMessaging. 2017-12-05 10:29:29 -05:00
Matthew Chen a16058e477 Migrate environment to SignalMessaging. 2017-12-05 10:29:29 -05:00
Matthew Chen 6d87df88aa Migrate environment to SignalMessaging. 2017-12-05 10:29:28 -05:00
Matthew Chen c817aa51b3 Migrate environment to SignalMessaging. 2017-12-05 10:28:46 -05:00
Michael Kirk 06f52deaf9 address some additional compiler warnings 2017-12-04 12:52:59 -05:00
Michael Kirk 2af818b3ba Make SignalMessaging AppExtension safe
// FREEBIE
2017-12-04 12:50:28 -05:00