Browse Source

minor fix on conversation ordering

pull/524/head
ryanzhao 2 months ago
parent
commit
4a21e87625
  1. 3
      SessionMessagingKit/Threads/TSThread.m

3
SessionMessagingKit/Threads/TSThread.m

@ -359,11 +359,12 @@ BOOL IsNoteToSelfEnabled(void)
if ([_lastInteractionDate compare: lastMessage.receivedAtDate] == NSOrderedAscending) {
_lastInteractionDate = lastMessage.receivedAtDate;
[super saveWithTransaction:transaction];
}
if (!self.shouldBeVisible) {
self.shouldBeVisible = YES;
[self saveWithTransaction:transaction];
[super saveWithTransaction:transaction];
} else {
[self touchWithTransaction:transaction];
}

Loading…
Cancel
Save