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.
		
		
		
		
		
			
		
			
				
	
	
		
			38 lines
		
	
	
		
			951 B
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			38 lines
		
	
	
		
			951 B
		
	
	
	
		
			Objective-C
		
	
//
 | 
						|
//  Copyright (c) 2019 Open Whisper Systems. All rights reserved.
 | 
						|
//
 | 
						|
 | 
						|
#import <Foundation/Foundation.h>
 | 
						|
 | 
						|
NS_ASSUME_NONNULL_BEGIN
 | 
						|
 | 
						|
@class YapDatabaseReadWriteTransaction;
 | 
						|
 | 
						|
/**
 | 
						|
 * Some interactions track read/unread status.
 | 
						|
 * e.g. incoming messages and call notifications
 | 
						|
 */
 | 
						|
@protocol OWSReadTracking <NSObject>
 | 
						|
 | 
						|
/**
 | 
						|
 * Has the local user seen the interaction?
 | 
						|
 */
 | 
						|
@property (nonatomic, readonly, getter=wasRead) BOOL read;
 | 
						|
 | 
						|
@property (nonatomic, readonly) uint64_t expireStartedAt;
 | 
						|
@property (nonatomic, readonly) uint64_t sortId;
 | 
						|
@property (nonatomic, readonly) NSString *uniqueThreadId;
 | 
						|
 | 
						|
- (BOOL)shouldAffectUnreadCounts;
 | 
						|
 | 
						|
/**
 | 
						|
 * Used both for *responding* to a remote read receipt and in response to the local user's activity.
 | 
						|
 */
 | 
						|
- (void)markAsReadAtTimestamp:(uint64_t)readTimestamp
 | 
						|
              sendReadReceipt:(BOOL)sendReadReceipt
 | 
						|
                  transaction:(YapDatabaseReadWriteTransaction *)transaction;
 | 
						|
 | 
						|
@end
 | 
						|
 | 
						|
NS_ASSUME_NONNULL_END
 |