Fix friend request acceptance bug

pull/16/head
Niels Andriesse 7 years ago
parent a8633ff739
commit 32ff266213

@ -2,7 +2,7 @@
@objc public extension TSOutgoingMessage {
/// Loki: This is a message used to establish sessions
@objc public static func createEmptyOutgoingMessage(inThread thread: TSThread) -> TSOutgoingMessage {
return TSOutgoingMessage(in: thread, messageBody: "", attachmentId: nil)
@objc public static func createEmptyOutgoingMessage(inThread thread: TSThread) -> EphemeralMessage {
return EphemeralMessage(in: thread, messageBody: "", attachmentId: nil)
}
}

@ -0,0 +1,10 @@
#import "TSOutgoingMessage.h"
NS_ASSUME_NONNULL_BEGIN
NS_SWIFT_NAME(EphemeralMessage)
@interface OWSEphemeralMessage : TSOutgoingMessage
@end
NS_ASSUME_NONNULL_END

@ -0,0 +1,7 @@
#import "OWSEphemeralMessage.h"
@implementation OWSEphemeralMessage
- (BOOL)shouldBeSaved { return NO; }
@end
Loading…
Cancel
Save