mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Preserve default scroll state until conversation view is presented.
This commit is contained in:
parent
b61838006d
commit
bb266d03e4
1 changed files with 3 additions and 1 deletions
|
@ -4115,7 +4115,9 @@ typedef enum : NSUInteger {
|
|||
self.scrollDownButton.frame = newButtonFrame;
|
||||
|
||||
// Adjust content offset to prevent the presented keyboard from obscuring content.
|
||||
if (wasScrolledToBottom) {
|
||||
if (!self.viewHasEverAppeared) {
|
||||
[self scrollToDefaultPosition];
|
||||
} else if (wasScrolledToBottom) {
|
||||
// If we were scrolled to the bottom, don't do any fancy math. Just stay at the bottom.
|
||||
[self scrollToBottomAnimated:NO];
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue