mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Shared ui db connection v. auto load more.
This commit is contained in:
parent
67fe8531c0
commit
b5a836bf28
|
@ -1065,6 +1065,7 @@ typedef enum : NSUInteger {
|
|||
[self startReadTimer];
|
||||
[self updateNavigationBarSubtitleLabel];
|
||||
[self updateBackButtonUnreadCount];
|
||||
[self autoLoadMoreIfNecessary];
|
||||
|
||||
switch (self.actionOnOpen) {
|
||||
case ConversationViewActionNone:
|
||||
|
@ -1082,7 +1083,6 @@ typedef enum : NSUInteger {
|
|||
|
||||
self.actionOnOpen = ConversationViewActionNone;
|
||||
|
||||
|
||||
self.isViewCompletelyAppeared = YES;
|
||||
self.viewHasEverAppeared = YES;
|
||||
|
||||
|
@ -1557,6 +1557,10 @@ typedef enum : NSUInteger {
|
|||
//
|
||||
// Otherwise, tapping on "load more messages" autoscrolls you downward which is completely wrong.
|
||||
if (hasEarlierUnseenMessages) {
|
||||
// Ensure view items are updated before trying to scroll to the
|
||||
// unread indicator.
|
||||
[[OWSPrimaryStorage sharedManager] updateUIDatabaseConnectionToLatest];
|
||||
|
||||
[self scrollToUnreadIndicatorAnimated];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue