mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fixed a crash due to not passing the transaction when accessing the database
This commit is contained in:
parent
f370b050a3
commit
22921a6b5a
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
TSThread *thread = [TSThread fetchObjectWithUniqueID:groupID transaction:transaction];
|
||||
|
||||
// Only increase the count for message requests
|
||||
if (!thread.isMessageRequest) { continue; }
|
||||
if (![thread isMessageRequestUsingTransaction:transaction]) { continue; }
|
||||
|
||||
[unreadMessages enumerateKeysAndObjectsInGroup:groupID
|
||||
usingBlock:^(NSString *collection, NSString *key, id object, NSUInteger index, BOOL *stop) {
|
||||
|
|
Loading…
Reference in a new issue