minor fix on conversation ordering

This commit is contained in:
ryanzhao 2021-10-07 10:57:24 +11:00
parent 36f3f83298
commit 4a21e87625
1 changed files with 2 additions and 1 deletions

View File

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