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.
28 lines
1.0 KiB
Matlab
28 lines
1.0 KiB
Matlab
5 years ago
|
#import "LKSessionRequestMessage.h"
|
||
|
#import <SignalCoreKit/NSDate+OWS.h>
|
||
|
#import <SignalServiceKit/SignalServiceKit-Swift.h>
|
||
|
|
||
|
@implementation LKSessionRequestMessage
|
||
|
|
||
5 years ago
|
#pragma mark Initialization
|
||
5 years ago
|
- (instancetype)initWithThread:(TSThread *)thread {
|
||
|
return [self 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];
|
||
|
}
|
||
|
|
||
5 years ago
|
#pragma mark Building
|
||
|
- (nullable SSKProtoDataMessageBuilder *)dataMessageBuilder
|
||
|
{
|
||
|
SSKProtoDataMessageBuilder *builder = super.dataMessageBuilder;
|
||
|
if (builder == nil) { return nil; }
|
||
|
[builder setFlags:SSKProtoDataMessageFlagsSessionRequest];
|
||
|
return builder;
|
||
|
}
|
||
|
|
||
5 years ago
|
#pragma mark Settings
|
||
|
- (BOOL)shouldBeSaved { return NO; }
|
||
|
- (uint)ttl { return (uint)[LKTTLUtilities getTTLFor:LKMessageTypeSessionRequest]; }
|
||
5 years ago
|
- (BOOL)shouldSyncTranscript { return NO; }
|
||
5 years ago
|
|
||
5 years ago
|
@end
|