Commit graph

710 commits

Author SHA1 Message Date
Niels Andriesse 40bb4ba1a4 Set device link message TTL, clean & add more analytics 2019-10-03 14:45:00 +10:00
Niels Andriesse 9fcb0f610f Fix crash 2019-10-02 16:10:22 +10:00
Niels Andriesse 0bb6721768 Create DeviceLinkingMessage 2019-09-24 14:20:22 +10:00
Niels Andriesse 052c9176c2 Implement copy public key action for group chats 2019-09-12 13:30:07 +10:00
Niels Andriesse f205767b98 Implement sending quotes in group chats 2019-09-11 14:07:51 +10:00
Niels Andriesse a6aac19c32 Fix RSS feed UI bug 2019-09-06 16:30:40 +10:00
Niels Andriesse bf7dd70327 Add basic events 2019-09-04 15:55:17 +10:00
Niels Andriesse d4b8dd0875 Clean 2019-08-28 16:49:47 +10:00
Mikunj 7acfa40915 Don't allow input on rss groups. 2019-08-28 16:45:14 +10:00
Niels Andriesse 48706d233f Implement group message sending & receiving 2019-08-21 16:16:40 +10:00
Niels Andriesse 037dde3cd8 Enforce naming convention 2019-06-17 14:39:35 +10:00
Niels Andriesse 1bf0d44246 Add basic styling 2019-06-14 15:25:39 +10:00
Niels Andriesse 22623815bb Enforce naming convention 2019-05-24 16:25:25 +10:00
Niels Andriesse 1a8175472a Refactor friend request view & add documentation 2019-05-21 10:30:06 +10:00
Niels Andriesse 5622c08124 Fix crash & clean 2019-05-21 09:09:48 +10:00
Niels Andriesse 4a633fba68 Debug friend request expiration 2019-05-20 14:52:26 +10:00
Niels Andriesse 6adc8cf014 Add isFriendRequestExpired flag 2019-05-20 12:31:21 +10:00
Niels Andriesse 81d5adc8c8 Fix threading issue & unnecessary updating 2019-05-20 10:40:39 +10:00
Niels Andriesse 750a25622b Partially fix remaining UI issues 2019-05-17 16:36:24 +10:00
Niels Andriesse 2e8d62b3ee Fix friend request acceptance bug 2019-05-17 14:03:04 +10:00
Niels Andriesse d5dc54af1b Partially fix UI updating bug 2019-05-17 12:38:36 +10:00
Niels Andriesse 3728638832 Reduce code duplication & fix cell sizing bug 2019-05-16 12:20:56 +10:00
Niels Andriesse 3161680432 Redo friend request handling 2019-05-16 12:08:37 +10:00
Niels Andriesse 49c6611d9d WIP 2019-05-15 16:48:16 +10:00
Niels Andriesse c3582f3d06 Update name shown on home screen 2019-05-15 14:52:56 +10:00
Niels Andriesse 3c579548cc Make pending friend request status more obvious 2019-05-15 11:41:07 +10:00
Niels Andriesse 1fc9ac34a2 Disable input bar as appropriate 2019-05-15 11:29:04 +10:00
Niels Andriesse cb1e876b7a Make friend request status updates more reliable 2019-05-15 11:19:33 +10:00
Niels Andriesse b83766ef74 Clean & fix conversation settings crash 2019-05-14 15:54:39 +10:00
Niels Andriesse e3e7788219 Disable input if a friend request is pending 2019-05-14 13:39:07 +10:00
Niels Andriesse 3dda1f17e1 Implement incoming friend request UI 2019-05-13 15:21:16 +10:00
Niels Andriesse aeb3cecf55 WIP 2019-05-03 07:58:48 +10:00
Michael Kirk 349dd61fee adapt iOS9 fix to new media flow 2019-04-15 14:35:35 -06:00
Michael Kirk a9ba848ffc address notification race 2019-04-10 07:13:10 -06:00
Matthew Chen 6c1d6cc201 Simplify the scroll down button layout. 2019-04-09 15:46:42 -04:00
Matthew Chen 40bd2b06d2 Simplify the scroll down button layout. 2019-04-09 14:55:49 -04:00
Matthew Chen 42871bb6a6 Simplify the scroll down button layout. 2019-04-09 14:48:01 -04:00
Matthew Chen 0e87d2e5b3 Simplify the scroll down button layout. 2019-04-09 14:38:29 -04:00
Matthew Chen 79d594b4d3 Ensure that conversation view's content insets reserve space for input accessory view when app is inactive. 2019-04-09 14:36:30 -04:00
Michael Kirk 501e2c761f Merge tag '2.38.1.2' 2019-04-04 13:42:07 -06:00
Michael Kirk 8ead2cc83d fix overzealous assert 2019-04-03 10:53:08 -06:00
Michael Kirk fdc9db3487 iOS9 workaround to restore input view after sending captioned attachment 2019-04-03 10:52:00 -06:00
Michael Kirk 07e88009e4 Merge tag '2.38.0.11' 2019-04-01 14:04:43 -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
Michael Kirk 5b77bc5475 sleep hack for iOS9 2019-03-29 12:38:01 -06:00
Matthew Chen f3d0cd99fc Handle notifications for open conversations. 2019-03-28 16:58:02 -04:00
Michael Kirk a8caae73cf remove redundant state 2019-03-28 13:13:43 -06:00
Michael Kirk fa2d5b422b maintain body text navigating to/from approval view 2019-03-28 11:58:43 -06:00
Michael Kirk 7dbb9517af Centralize attachment state in nav controller 2019-03-28 10:30:47 -06:00
Michael Kirk 6502d7d4a5 remove isMultiSendEnabled feature flag 2019-03-28 10:30:47 -06: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 d253c5aa91 Add accessibilityIdentifiers to conversation view. 2019-03-25 09:31:19 -04: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
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 882dd16d7c Apply presentAlert() throughout codebase. 2019-03-21 10:55:04 -04: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
Matthew Chen 4f06e6dd6e Conversation view always observes view model. 2019-03-19 10:03:58 -04:00
Matthew Chen 3b008ad963 Fix conversation view content offset and scroll down button layout. 2019-03-14 15:47:59 -04:00
Michael Kirk 284357137f Photo/Movie Capture 2019-03-14 12:20:21 -07:00
Matthew Chen 7a67a7b6b5 Hide the status bar in the image picker / attachment approval. 2019-03-12 17:22:46 -04:00
Matthew Chen 0aebac0d07 Fix layout of the 'scroll down' button. 2019-03-11 23:29:01 -04:00
Matthew Chen 0a1947c961 Dismiss message actions UI on orientation change. 2019-03-11 23:28:20 -04:00
Matthew Chen 41a2a954f5 Dismiss message actions UI on orientation change. 2019-03-11 23:28:20 -04:00
Matthew Chen 6fe3ce6d87 Deconflict "bottom view" layout and keyboard animations. 2019-03-11 23:23:08 -04:00
Michael Kirk 1c78350f9a Clear input bar UI earlier in send process for snappier send animation. 2019-03-11 12:37:18 -07:00
Michael Kirk 71dd4eb151 in-conversation search
- use MediaTime for computing benchmarks
2019-02-28 16:19:16 -07:00
Michael Kirk b11308b2f8 Return to conversation after deleting long text 2019-02-26 17:19:18 -07:00
Matthew Chen 7711ee92a7 Revert "Conversation view always observes view model."
This reverts commit 9d39e829a44f28f324f79e0b74a6c8692678d788.
2019-02-26 10:56:23 -05:00
Matthew Chen 6ed4045fbe Conversation view always observes view model. 2019-02-26 10:56:11 -05:00
Matthew Chen 56e5feca46 Introduce ConversationSnapshot. 2019-02-26 10:55:44 -05:00
Matthew Chen 586b362b89 Introduce ConversationSnapshot. 2019-02-26 10:55:44 -05:00
Michael Kirk 233bc3858b dismiss menu actions when selected item is deleted 2019-02-25 14:10:12 -07:00
Michael Kirk bc4260b444 Send long-text with other attachments 2019-02-25 13:27:49 -07:00
Michael Kirk a218d6c465 Send first chars of longtext in protobuf 2019-02-25 13:27:49 -07:00
Michael Kirk fabd3996c2 pop view if message is deleted
- use global ui database connection
2019-02-21 16:18:14 -07:00
Michael Kirk d29ce740cb Voice Note Lock 2019-02-06 17:34:29 -07:00
Matthew Chen 4feb0011d7 Reduce logging. 2019-01-31 15:48:50 -05:00
Matthew Chen 6ff6ee2e2e Rework layout of conversation input toolbar. 2019-01-23 13:02:52 -05:00
Matthew Chen 8452f5e74b Open link preview URLs when tapped. 2019-01-23 09:58:37 -05:00
Matthew Chen 3d757b492a Add link previews to conversation message bubbles. 2019-01-23 09:32:30 -05:00
Matthew Chen ca8a4b3751 Make LinkPreviewView reusable. 2019-01-23 09:27:52 -05:00
Matthew Chen 8c7c9b27a2 Merge tag '2.34.0.26' 2019-01-23 09:14:26 -05:00
Matthew Chen 416aa2b347 Add rough draft of link preview view to composer. 2019-01-23 09:11:13 -05:00
Michael Kirk f1e508cb60 Recover status bar style when canceling PhotoPicker 2019-01-22 09:13:22 -07:00
Matthew Chen 977ee9ffe9 Merge remote-tracking branch 'private/release/2.34.0' 2019-01-22 11:10:04 -05:00
Matthew Chen d6a51a2a42 Fix merge breakage. 2019-01-22 10:21:43 -05:00
Matthew Chen 31ea64bdaf Build link previews. 2019-01-22 09:42:25 -05:00
Matthew Chen 127ccccb80 Tweak conversation view's "load more" behavior. 2019-01-17 14:36:31 -05:00
Matthew Chen b8e2cb6267 Respond to CR. 2019-01-15 16:33:54 -05:00
Matthew Chen 18c890bb95 Fix input toolbar margins issue. 2019-01-15 16:30:32 -05:00
Matthew Chen d32372ec26 Respond to CR. 2019-01-11 17:55:21 -05:00
Matthew Chen 9dda2fa8c0 Improve scroll state continuity during conversation view rotations. 2019-01-11 17:55:21 -05:00
Matthew Chen cb228bdd29 Fix conversation view keyboard. 2019-01-10 12:04:12 -05:00
Matthew Chen 18a1d49b46 Landscape orientation. 2019-01-09 15:14:36 -05:00
Matthew Chen 721cab7887 Landscape orientation. 2019-01-09 15:14:36 -05:00