mirror of https://github.com/oxen-io/session-ios
Refactor
parent
01e80f4569
commit
64f92d261b
@ -1,9 +0,0 @@
|
|||||||
|
|
||||||
@objc public extension TSOutgoingMessage {
|
|
||||||
|
|
||||||
/// Loki: This is a message used to establish sessions
|
|
||||||
@objc public static func createEmptyOutgoingMessage(inThread thread: TSThread) -> EphemeralMessage {
|
|
||||||
return EphemeralMessage(outgoingMessageWithTimestamp: NSDate.ows_millisecondTimeStamp(), in: thread, messageBody: "", attachmentIds: [], expiresInSeconds: 0,
|
|
||||||
expireStartedAt: 0, isVoiceMessage: false, groupMetaMessage: .unspecified, quotedMessage: nil, contactShare: nil, linkPreview: nil)
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,7 +1,13 @@
|
|||||||
#import "OWSEphemeralMessage.h"
|
#import "OWSEphemeralMessage.h"
|
||||||
|
#import <SignalCoreKit/NSDate+OWS.h>
|
||||||
|
|
||||||
@implementation OWSEphemeralMessage
|
@implementation OWSEphemeralMessage
|
||||||
|
|
||||||
- (BOOL)shouldBeSaved { return NO; }
|
- (BOOL)shouldBeSaved { return NO; }
|
||||||
|
|
||||||
|
+ (OWSEphemeralMessage *)createEmptyOutgoingMessageInThread:(TSThread *)thread {
|
||||||
|
return [[OWSEphemeralMessage alloc] initOutgoingMessageWithTimestamp:NSDate.ows_millisecondTimeStamp inThread:thread messageBody:@"" attachmentIds:[NSMutableArray<NSString *> new]
|
||||||
|
expiresInSeconds:0 expireStartedAt:0 isVoiceMessage:NO groupMetaMessage:TSGroupMetaMessageUnspecified quotedMessage:nil contactShare:nil linkPreview:nil];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Loading…
Reference in New Issue