mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			41 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C
		
	
		
		
			
		
	
	
			41 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C
		
	
| 
											7 years ago
										 | //
 | ||
|  | //  Copyright (c) 2018 Open Whisper Systems. All rights reserved.
 | ||
|  | //
 | ||
|  | 
 | ||
|  | NS_ASSUME_NONNULL_BEGIN | ||
|  | 
 | ||
|  | @interface OWSUnreadIndicator : NSObject | ||
|  | 
 | ||
|  | @property (nonatomic, readonly) BOOL hasMoreUnseenMessages; | ||
|  | 
 | ||
|  | @property (nonatomic, readonly) NSUInteger missingUnseenSafetyNumberChangeCount; | ||
|  | 
 | ||
| 
											7 years ago
										 | // The sortId of the oldest unseen message.
 | ||
| 
											7 years ago
										 | //
 | ||
|  | // Once we enter messages view, we mark all messages read, so we need
 | ||
|  | // a snapshot of what the first unread message was when we entered the
 | ||
|  | // view so that we can call ensureDynamicInteractionsForThread:...
 | ||
|  | // repeatedly. The unread indicator should continue to show up until
 | ||
|  | // it has been cleared, at which point hideUnreadMessagesIndicator is
 | ||
|  | // YES in ensureDynamicInteractionsForThread:...
 | ||
| 
											7 years ago
										 | @property (nonatomic, readonly) uint64_t firstUnseenSortId; | ||
| 
											7 years ago
										 | 
 | ||
|  | // The index of the unseen indicator, counting from the _end_ of the conversation
 | ||
|  | // history.
 | ||
|  | //
 | ||
|  | // This is used by MessageViewController to increase the
 | ||
|  | // range size of the mappings (the load window of the conversation)
 | ||
|  | // to include the unread indicator.
 | ||
|  | @property (nonatomic, readonly) NSInteger unreadIndicatorPosition; | ||
|  | 
 | ||
|  | - (instancetype)init NS_UNAVAILABLE; | ||
|  | 
 | ||
| 
											7 years ago
										 | - (instancetype)initWithFirstUnseenSortId:(uint64_t)firstUnseenSortId | ||
|  |                     hasMoreUnseenMessages:(BOOL)hasMoreUnseenMessages | ||
|  |      missingUnseenSafetyNumberChangeCount:(NSUInteger)missingUnseenSafetyNumberChangeCount | ||
|  |                   unreadIndicatorPosition:(NSInteger)unreadIndicatorPosition NS_DESIGNATED_INITIALIZER; | ||
| 
											7 years ago
										 | 
 | ||
|  | @end | ||
|  | 
 | ||
|  | NS_ASSUME_NONNULL_END |