Shows the conversation picker, and sends the attachment to that conversation. There's still a lot TODO -[ ] resolve JSQ dependency -[ ] properly wait for app to load -[ ] dismiss share extension after send is complete -[ ] support non jpeg file types -[ ] Fix device sleep manager // FREEBIE
28 lines
916 B
Objective-C
28 lines
916 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <SignalServiceKit/TSInteraction.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface OWSContactOffersInteraction : TSInteraction
|
|
|
|
@property (nonatomic, readonly) BOOL hasBlockOffer;
|
|
@property (nonatomic, readonly) BOOL hasAddToContactsOffer;
|
|
@property (nonatomic, readonly) BOOL hasAddToProfileWhitelistOffer;
|
|
@property (nonatomic, readonly) NSString *recipientId;
|
|
|
|
- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
|
|
|
|
- (instancetype)initWithTimestamp:(uint64_t)timestamp
|
|
thread:(TSThread *)thread
|
|
hasBlockOffer:(BOOL)hasBlockOffer
|
|
hasAddToContactsOffer:(BOOL)hasAddToContactsOffer
|
|
hasAddToProfileWhitelistOffer:(BOOL)hasAddToProfileWhitelistOffer
|
|
recipientId:(NSString *)recipientId NS_DESIGNATED_INITIALIZER;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|