mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
probably fix a crash since the sort id might not be initialized
This commit is contained in:
parent
794ac0c954
commit
8b032a40e4
|
@ -456,7 +456,7 @@ typedef void (^BuildOutgoingMessageCompletionBlock)(TSOutgoingMessage *savedMess
|
|||
} else {
|
||||
TSInteraction *_Nullable firstUnseenInteraction =
|
||||
[[TSDatabaseView unseenDatabaseViewExtension:transaction] firstObjectInGroup:thread.uniqueId];
|
||||
if (firstUnseenInteraction) {
|
||||
if (firstUnseenInteraction && firstUnseenInteraction.sortId != NULL) {
|
||||
firstUnseenSortId = @(firstUnseenInteraction.sortId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue