Commit Graph

453 Commits (dfd59492c040452d88eea70750e3aab2829e13a0)

Author SHA1 Message Date
Niels Andriesse 99046145a3 Rename Loki Messenger Updates → Session Updates 5 years ago
Niels Andriesse 3eaf287660 Clean up share screen 5 years ago
Niels Andriesse 81bd2f3cd7 WIP 5 years ago
Niels Andriesse 6d0f2c958c Clean up link previews 5 years ago
Niels Andriesse 5ffff3d3b7 WIP 5 years ago
Niels Andriesse 5a373d04fa WIP 5 years ago
Niels Andriesse f50fe92d57 WIP 5 years ago
Niels Andriesse 7ea5e5bd46 Implement profile updating redesign 5 years ago
Mikunj b0dfae7974 Fix multi-device profile picture handling.
Fixed note to self.
Enabled removal of avatar.
5 years ago
Niels Andriesse 16d5e4f4e7 Debug 5 years ago
Niels Andriesse 850346acf2 Implement sending side of revocation 5 years ago
Maxim Shishmarev 859384afaf Enable profile pictures 5 years ago
Niels Andriesse e09dc8fed7 Clean 5 years ago
Niels Andriesse 94bca8db60 Disable garbage assertions 5 years ago
Niels Andriesse 3f07396f94 Clean 5 years ago
Niels Andriesse 6176c63a81 Glue together remaining pieces 5 years ago
Niels Andriesse 0bb6721768 Create DeviceLinkingMessage 5 years ago
Niels Andriesse 0743fbf855 Refactor 5 years ago
Niels Andriesse c780023d63 Fix quote UI 5 years ago
Niels Andriesse 1338fcda21 Clean 5 years ago
Mikunj 43a20879e6 Merge branch 'dev' into profile-icons 5 years ago
Mikunj f230c2ac2c Fix incorrect color handling. 5 years ago
Niels Andriesse a3a64218f9 Implement link previews for regular conversations 5 years ago
Mikunj 1cba6f1ce4 Fix minor hue correction 5 years ago
Mikunj Varsani 6857fd3285 Added JazzIcons. 5 years ago
Niels Andriesse 48706d233f Implement group message sending & receiving 5 years ago
Niels Andriesse 52f479a0b1 Implement fancy avatars 5 years ago
Niels Andriesse bc112a7c90 Propagate request timeout interval through to request serializer 5 years ago
Niels Andriesse 30aac6a94d Fix crash 5 years ago
Niels Andriesse 1bf0d44246 Add basic styling 5 years ago
Niels Andriesse a11074ba5a Fix crash 5 years ago
Niels Andriesse 1c73cf5114 Re-order files 5 years ago
Niels Andriesse 64f92d261b Refactor 5 years ago
Mikunj fb1e27d633 Fix empty message generation.
Before since we were setting the groupMetaMessage, it was setting the `shouldSave` property to true and thus the message sender was looking for the message in the db.
We now don't set this property so the message should be able to be sent without saving.
5 years ago
Niels Andriesse 7faa9d333c Add missing save 5 years ago
Niels Andriesse be7724b41b Implement feedback 5 years ago
Niels Andriesse 3161680432 Redo friend request handling 5 years ago
Niels Andriesse cb1e876b7a Make friend request status updates more reliable 5 years ago
Niels Andriesse b83766ef74 Clean & fix conversation settings crash 5 years ago
Mikunj a4b042f282 Added convenience function to make empty outgoing messages. 5 years ago
Niels Andriesse 3dda1f17e1 Implement incoming friend request UI 5 years ago
Niels Andriesse 4da8d33932 Clean 5 years ago
Mikunj 09157673fe Added friend request states in TSThread.
Automatically send a OWSFriendRequest if we are not friend with the person.
5 years ago
Michael Kirk 30266bf65e autoformatted 5 years ago
Michael Kirk 64a0c4bfaa auto-migrate to Swift5 5 years ago
Matthew Chen 4188993fc5 Add accessibilityIdentifiers to 'new contact thread' view. 5 years ago
Matthew Chen 95e125d55e Simplify usage of accessibilityIdentifiers. 5 years ago
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;
}
```
5 years ago
Matthew Chen 882dd16d7c Apply presentAlert() throughout codebase. 5 years ago
Matthew Chen c9d62f47cc Respond to CR. 5 years ago