|
|
@ -62,6 +62,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
|
|
+ (void)processIncomingSentMessageTranscript:(OWSIncomingSentMessageTranscript *)transcript
|
|
|
|
+ (void)processIncomingSentMessageTranscript:(OWSIncomingSentMessageTranscript *)transcript
|
|
|
|
serverID:(uint64_t)serverID
|
|
|
|
serverID:(uint64_t)serverID
|
|
|
|
|
|
|
|
serverTimestamp:(uint64_t)serverTimestamp
|
|
|
|
attachmentHandler:(void (^)(
|
|
|
|
attachmentHandler:(void (^)(
|
|
|
|
NSArray<TSAttachmentStream *> *attachmentStreams))attachmentHandler
|
|
|
|
NSArray<TSAttachmentStream *> *attachmentStreams))attachmentHandler
|
|
|
|
transaction:(YapDatabaseReadWriteTransaction *)transaction
|
|
|
|
transaction:(YapDatabaseReadWriteTransaction *)transaction
|
|
|
@ -104,6 +105,14 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
contactShare:transcript.contact
|
|
|
|
contactShare:transcript.contact
|
|
|
|
linkPreview:transcript.linkPreview];
|
|
|
|
linkPreview:transcript.linkPreview];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (transcript.thread.isGroupThread) {
|
|
|
|
|
|
|
|
TSGroupThread *thread = (TSGroupThread *)transcript.thread;
|
|
|
|
|
|
|
|
if (thread.isPublicChat) {
|
|
|
|
|
|
|
|
[outgoingMessage setServerTimestampAsReceiveTimestamp:serverTimestamp];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (serverID != 0) {
|
|
|
|
if (serverID != 0) {
|
|
|
|
outgoingMessage.openGroupServerMessageID = serverID;
|
|
|
|
outgoingMessage.openGroupServerMessageID = serverID;
|
|
|
|
}
|
|
|
|
}
|
|
|
|