mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
3560f3be5c
TODO -[x] respect order of queue -[x] replacements -[x] those w/o completion handler -[x] basic send+log operation persists -[x] send+ui completion -[x] share extension -[x] update state jobs -[x] App Lifecyle -[x] settable -[x] Mark as ready on startup -[x] Fail appropriate jobs on startup NICE TO HAVE -[x] concurrent per senders -[ ] longer retry (e.g. 24hrs) -[ ] App Lifecyle -[x] retry failed jobs on startup? -[ ] reachability DONE -[x] basic passing test -[x] datamodel -[x] queue/classes
25 lines
577 B
Objective-C
25 lines
577 B
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "OWSMessageSender.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
#ifdef DEBUG
|
|
|
|
typedef void (^messageBlock)(TSOutgoingMessage *);
|
|
|
|
@interface OWSFakeMessageSender : OWSMessageSender
|
|
|
|
@property (nonatomic, nullable) NSError *stubbedFailingError;
|
|
|
|
@property (nonatomic, nullable) messageBlock sendMessageWasCalledBlock;
|
|
@property (nonatomic, nullable) messageBlock sendAttachmentWasCalledBlock;
|
|
@property (nonatomic, nullable) messageBlock sendTemporaryAttachmentWasCalledBlock;
|
|
|
|
@end
|
|
|
|
#endif
|
|
|
|
NS_ASSUME_NONNULL_END
|