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.
		
		
		
		
		
			
		
			
				
	
	
		
			34 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			34 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Objective-C
		
	
| //
 | |
| //  Copyright (c) 2018 Open Whisper Systems. All rights reserved.
 | |
| //
 | |
| 
 | |
| #import <SessionMessagingKit/TSThread.h>
 | |
| 
 | |
| NS_ASSUME_NONNULL_BEGIN
 | |
| 
 | |
| extern NSString *const TSContactThreadPrefix;
 | |
| 
 | |
| @interface TSContactThread : TSThread
 | |
| 
 | |
| @property (nonatomic) BOOL hasDismissedOffers;
 | |
| 
 | |
| - (instancetype)initWithContactId:(NSString *)contactId;
 | |
| 
 | |
| + (instancetype)getOrCreateThreadWithContactId:(NSString *)contactId NS_SWIFT_NAME(getOrCreateThread(contactId:));
 | |
| 
 | |
| + (instancetype)getOrCreateThreadWithContactId:(NSString *)contactId
 | |
|                                    transaction:(YapDatabaseReadWriteTransaction *)transaction;
 | |
| 
 | |
| // Unlike getOrCreateThreadWithContactId, this will _NOT_ create a thread if one does not already exist.
 | |
| + (nullable instancetype)getThreadWithContactId:(NSString *)contactId transaction:(YapDatabaseReadTransaction *)transaction;
 | |
| 
 | |
| - (NSString *)contactIdentifier;
 | |
| 
 | |
| + (NSString *)contactIdFromThreadId:(NSString *)threadId;
 | |
| 
 | |
| + (NSString *)threadIdFromContactId:(NSString *)contactId;
 | |
| 
 | |
| @end
 | |
| 
 | |
| NS_ASSUME_NONNULL_END
 |