Commit Graph

4812 Commits

Author SHA1 Message Date
Michael Kirk
2242dd240f Fix "blank notification text" for oversize messages 2019-03-29 13:31:27 -06:00
Matthew Chen
8f7ad79506 Only update scroll state to reflect keyboard changes if view has appeared. 2019-03-29 15:29:54 -04:00
Matthew Chen
746fd278da Restart typing indicators animations after app returns from background. 2019-03-29 14:59:46 -04:00
Michael Kirk
5b77bc5475 sleep hack for iOS9 2019-03-29 12:38:01 -06:00
Michael Kirk
05d8846f6c match highlight behavior with search behavior 2019-03-29 12:38:01 -06:00
Matthew Chen
aad5533127 Respond to CR. 2019-03-28 18:01:49 -04:00
Matthew Chen
01d9993b9d Handle notifications for open conversations. 2019-03-28 17:03:10 -04:00
Matthew Chen
f3d0cd99fc Handle notifications for open conversations. 2019-03-28 16:58:02 -04:00
Matthew Chen
987726df6c Temp files. 2019-03-27 12:37:22 -04:00
Matthew Chen
bb1921afe6 Simplify link preview cache. 2019-03-27 12:35:47 -04:00
Matthew Chen
04b60677a6 Simplify link preview cache. 2019-03-27 12:35:47 -04:00
Matthew Chen
ae5cee2167 Clean up the link preview cache. 2019-03-27 12:35:47 -04:00
Matthew Chen
0d9b780f75 Remove scroll up button. 2019-03-27 10:41:48 -04:00
Michael Kirk
d02152cf14 fix release build 2019-03-26 21:44:59 -06:00
Matthew Chen
3ce3f9faaa Add accessibilityIdentifiers to conversation settings view. 2019-03-25 09:31:55 -04:00
Matthew Chen
f073dd9a52 Add accessibilityIdentifiers to conversation settings view. 2019-03-25 09:31:55 -04:00
Matthew Chen
d253c5aa91 Add accessibilityIdentifiers to conversation view. 2019-03-25 09:31:19 -04:00
Matthew Chen
50888b20d2 Add accessibilityIdentifiers to 'new group thread' view. 2019-03-25 09:31:19 -04:00
Matthew Chen
4188993fc5 Add accessibilityIdentifiers to 'new contact thread' view. 2019-03-25 09:31:19 -04:00
Matthew Chen
95e125d55e Simplify usage of accessibilityIdentifiers. 2019-03-25 09:31:19 -04:00
Matthew Chen
2d854406a1 Add accessibilityIdentifiers to home view. 2019-03-25 09:31:19 -04:00
Michael Kirk
ed6b461662 search icon 2019-03-22 18:18:56 -07:00
Matthew Chen
a6e00c8fec Respond to CR. 2019-03-22 16:53:55 -04:00
Matthew Chen
a7ae79aaad Ignore keyboard notifications while the view is disappearing or has disappeared. 2019-03-22 10:26:25 -04:00
Matthew Chen
85d58d3396 Improve handling of call intents. 2019-03-21 15:22:47 -04:00
Michael Kirk
e3cc8bb101 Keep results bar visible when dismissing keyboard or returning to view. 2019-03-21 12:04:37 -07:00
Michael Kirk
3850ca29b0 Bigger hack to fix problem with lesser hack.
There were two symptoms to this bad "leave app while dismissing keyboard"
state...

The first, most noticeable symptom was that the main window no longer respected
the device orientation. This was caused by UIKit temporarily disabling
autorotate during an interactive keyboard dismissal, and not cleaning up after
itself when we hid the window mid dismissal due to our screen protection
feature. This was solved previously in: ca0a555f8

The second symptom remained, and is solved by this commit. Wherein after
getting in this bad state, the interactive keyboard dismiss function behaves
oddly. Normally when interactively dismissing the keyboard in a scroll view,
the keyboard top follows your finger, until you lift up your finger, at which
point, depending on how close you are to the bottom, the keyboard should
completely dismiss, or cancel and return to its fully popped position. In the
degraded state, the keyboard would follow your finger, but when you lifted your
finger, it would stay where your finger left it, it would not complete/cancel
the dismiss.

The solution is, instead of only re-enabling autorotate, to use a higher level
private method which is called upon complete/cancellation of the interactive
dismissal. The method, `UIScrollToDismissSupport#finishScrollViewTransition`,
as well as re-enabling autorotate, does some other work to restore the UI to
it's normal post interactive-keyboard-dismiss gesture state.

For posterity here's the decompiled pseudocode:

```
/* @class UIScrollToDismissSupport */
-(void)finishScrollViewTransition {
    *(int8_t *)&self->_scrollViewTransitionFinishing = 0x0;
    [self->_controller setInterfaceAutorotationDisabled:0x0];
    [self hideScrollViewHorizontalScrollIndicator:0x0];
    ebx = *ivar_offset(_scrollViewNotificationInfo);
    [*(self + ebx) release];
    *(self + ebx) = 0x0;
    esi = *ivar_offset(_scrollViewForTransition);
    [*(self + esi) release];
    *(self + esi) = 0x0;
    return;
}
```
2019-03-21 10:37:54 -07:00
Matthew Chen
1b9eb3c572 Ensure Callkit is enabled for locale. 2019-03-21 11:16:11 -04:00
Matthew Chen
40c9c196aa Fix memory leaks. 2019-03-21 11:12:04 -04:00
Matthew Chen
882dd16d7c Apply presentAlert() throughout codebase. 2019-03-21 10:55:04 -04:00
Matthew Chen
c9d62f47cc Respond to CR. 2019-03-21 10:26:38 -04:00
Matthew Chen
1a80f0c293 Add accessibility identifiers to privacy popups and subviews. 2019-03-21 10:08:57 -04:00
Matthew Chen
cb5ce42e76 Add accessibility identifiers to privacy popups and subviews. 2019-03-21 10:08:25 -04:00
Matthew Chen
f37a3059fa Add accessibility identifiers to debug log popups. 2019-03-21 10:08:25 -04:00
Matthew Chen
81508e9d02 Add accessibility identifiers to settings popups. 2019-03-21 10:08:25 -04:00
Matthew Chen
f1520d760e Add accessibility identifiers to other settings views. 2019-03-21 10:08:25 -04:00
Matthew Chen
b48e204b90 Add accessibility identifiers to notification settings views. 2019-03-21 10:08:25 -04:00
Matthew Chen
02340864f8 Add accessibility identifiers to blocklist view. 2019-03-21 10:08:25 -04:00
Matthew Chen
f7d86028da Add accessibility identifiers to profile view. 2019-03-21 10:08:25 -04:00
Matthew Chen
c619f815b5 Add accessibility identifiers to app settings view. 2019-03-21 10:08:25 -04:00
Matthew Chen
6ee4317590 Add "track" to attachment download progress indicator. 2019-03-21 10:07:38 -04:00
Matthew Chen
c2c08d0712 Remove overzealous valid media asserts. 2019-03-20 14:43:18 -04:00
Matthew Chen
31b4612746 Rework attachment download progress for generic attachments. 2019-03-20 11:33:36 -04:00
Matthew Chen
5df4a0bc17 Rework attachment download progress for audio files. 2019-03-20 11:33:36 -04:00
Michael Kirk
93c9c83ac5 Haptic feedback when remote enables video 2019-03-19 13:56:20 -07:00
Michael Kirk
179dec299f Show hint when other party enables video 2019-03-19 13:56:20 -07:00
Michael Kirk
6ccd73837c rename haptic classes, no change in functionality 2019-03-19 13:56:20 -07:00
Matthew Chen
9fe3aa06ed Respond to CR. 2019-03-19 11:15:09 -04:00
Matthew Chen
6ab8ea9b6e Respond to CR. 2019-03-19 11:13:06 -04:00
Matthew Chen
a8e9b87f03 Rework menu actions focus item layout. 2019-03-19 11:12:30 -04:00