Send empty data messages in LKEphemeralMessage.

pull/35/head
Mikunj 5 years ago
parent 108452cf56
commit 3d55bb2820

@ -9,20 +9,6 @@
expiresInSeconds:0 expireStartedAt:0 isVoiceMessage:NO groupMetaMessage:TSGroupMetaMessageUnspecified quotedMessage:nil contactShare:nil linkPreview:nil];
}
// An EphemeralMessage does not have any data message in the content
- (nullable NSData *)buildPlainTextData:(SignalRecipient *)recipient
{
NSError *error;
SSKProtoContentBuilder *contentBuilder = [self contentBuilder:recipient];
NSData *_Nullable contentData = [contentBuilder buildSerializedDataAndReturnError:&error];
if (error || !contentData) {
OWSFailDebug(@"could not serialize protobuf: %@", error);
return nil;
}
return contentData;
}
- (BOOL)shouldSyncTranscript { return NO; }
- (BOOL)shouldBeSaved { return NO; }

@ -415,6 +415,7 @@ NS_ASSUME_NONNULL_BEGIN
}
// Loki: Handle any friend request accepts if we need to
// TODO: We'll need to fix this up if we ever start using Sync messages
[self handleFriendRequestAcceptIfNeededWithEnvelope:envelope transaction:transaction];
if (envelope.content != nil) {

Loading…
Cancel
Save