mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Respond to CR.
// FREEBIE
This commit is contained in:
parent
c7426f9343
commit
f71f33c2a6
3 changed files with 6 additions and 6 deletions
|
@ -2661,9 +2661,9 @@ typedef enum : NSUInteger {
|
|||
|
||||
self.dynamicInteractions =
|
||||
[ThreadUtil ensureDynamicInteractionsForThread:self.thread
|
||||
storageManager:self.storageManager
|
||||
contactsManager:self.contactsManager
|
||||
blockingManager:self.blockingManager
|
||||
dbConnection:self.uiDatabaseConnection
|
||||
hideUnreadMessagesIndicator:self.hasClearedUnreadMessagesIndicator
|
||||
firstUnseenInteractionTimestamp:self.dynamicInteractions.firstUnseenInteractionTimestamp
|
||||
maxRangeSize:maxRangeSize];
|
||||
|
|
|
@ -10,7 +10,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
@class SignalAttachment;
|
||||
@class TSContactThread;
|
||||
@class TSInteraction;
|
||||
@class TSStorageManager;
|
||||
@class YapDatabaseConnection;
|
||||
@class TSThread;
|
||||
@class TSUnreadIndicatorInteraction;
|
||||
|
||||
|
@ -73,9 +73,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
// size of the "load window" in that view. The unread indicator should
|
||||
// always be inserted within that window.
|
||||
+ (ThreadDynamicInteractions *)ensureDynamicInteractionsForThread:(TSThread *)thread
|
||||
storageManager:(TSStorageManager *)storageManager
|
||||
contactsManager:(OWSContactsManager *)contactsManager
|
||||
blockingManager:(OWSBlockingManager *)blockingManager
|
||||
dbConnection:(YapDatabaseConnection *)dbConnection
|
||||
hideUnreadMessagesIndicator:(BOOL)hideUnreadMessagesIndicator
|
||||
firstUnseenInteractionTimestamp:(nullable NSNumber *)firstUnseenInteractionTimestamp
|
||||
maxRangeSize:(int)maxRangeSize;
|
||||
|
|
|
@ -94,16 +94,16 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
}
|
||||
|
||||
+ (ThreadDynamicInteractions *)ensureDynamicInteractionsForThread:(TSThread *)thread
|
||||
storageManager:(TSStorageManager *)storageManager
|
||||
contactsManager:(OWSContactsManager *)contactsManager
|
||||
blockingManager:(OWSBlockingManager *)blockingManager
|
||||
dbConnection:(YapDatabaseConnection *)dbConnection
|
||||
hideUnreadMessagesIndicator:(BOOL)hideUnreadMessagesIndicator
|
||||
firstUnseenInteractionTimestamp:
|
||||
(nullable NSNumber *)firstUnseenInteractionTimestampParameter
|
||||
maxRangeSize:(int)maxRangeSize
|
||||
{
|
||||
OWSAssert(thread);
|
||||
OWSAssert(storageManager);
|
||||
OWSAssert(dbConnection);
|
||||
OWSAssert(contactsManager);
|
||||
OWSAssert(blockingManager);
|
||||
OWSAssert(maxRangeSize > 0);
|
||||
|
@ -113,7 +113,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
|
||||
ThreadDynamicInteractions *result = [ThreadDynamicInteractions new];
|
||||
|
||||
[storageManager.dbConnection readWriteWithBlock:^(YapDatabaseReadWriteTransaction *transaction) {
|
||||
[dbConnection readWriteWithBlock:^(YapDatabaseReadWriteTransaction *transaction) {
|
||||
const int kMaxBlockOfferOutgoingMessageCount = 10;
|
||||
|
||||
// Find any "dynamic" interactions and safety number changes.
|
||||
|
|
Loading…
Reference in a new issue