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.
30 lines
945 B
Objective-C
30 lines
945 B
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "LKSessionRequestMessage.h"
|
|
#import <SignalCoreKit/NSDate+OWS.h>
|
|
#import <SignalServiceKit/SignalServiceKit-Swift.h>
|
|
|
|
@implementation LKSessionRequestMessage
|
|
|
|
- (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];
|
|
}
|
|
|
|
- (BOOL)shouldBeSaved {
|
|
return NO;
|
|
}
|
|
|
|
#pragma mark Building
|
|
- (nullable SSKProtoDataMessageBuilder *)dataMessageBuilder
|
|
{
|
|
SSKProtoDataMessageBuilder *builder = super.dataMessageBuilder;
|
|
if (builder == nil) { return nil; }
|
|
[builder setFlags:SSKProtoDataMessageFlagsSessionRequest];
|
|
return builder;
|
|
}
|
|
|
|
@end
|