|
|
|
@ -915,6 +915,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
[OWSRecordTranscriptJob
|
|
|
|
|
processIncomingSentMessageTranscript:transcript
|
|
|
|
|
serverID:0
|
|
|
|
|
serverTimestamp:0
|
|
|
|
|
attachmentHandler:^(NSArray<TSAttachmentStream *> *attachmentStreams) {
|
|
|
|
|
OWSAssertDebug(attachmentStreams.count == 1);
|
|
|
|
|
TSAttachmentStream *attachmentStream = attachmentStreams.firstObject;
|
|
|
|
@ -943,6 +944,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
[OWSRecordTranscriptJob
|
|
|
|
|
processIncomingSentMessageTranscript:transcript
|
|
|
|
|
serverID:(serverID ?: 0)
|
|
|
|
|
serverTimestamp:(uint64_t)envelope.serverTimestamp
|
|
|
|
|
attachmentHandler:^(NSArray<TSAttachmentStream *> *attachmentStreams) {
|
|
|
|
|
OWSLogDebug(@"successfully fetched transcript attachments: %lu",
|
|
|
|
|
(unsigned long)attachmentStreams.count);
|
|
|
|
@ -1417,6 +1419,11 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
serverTimestamp:serverTimestamp
|
|
|
|
|
wasReceivedByUD:wasReceivedByUD];
|
|
|
|
|
|
|
|
|
|
//For open group messages, use server timestamp as the receive timestamp
|
|
|
|
|
if (oldGroupThread.isPublicChat) {
|
|
|
|
|
[incomingMessage setServerTimestampAsReceiveTimestamp:(uint64_t)envelope.serverTimestamp];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Loki: Set open group server ID if needed
|
|
|
|
|
if (dataMessage.publicChatInfo != nil && dataMessage.publicChatInfo.hasServerID) {
|
|
|
|
|
incomingMessage.openGroupServerMessageID = dataMessage.publicChatInfo.serverID;
|
|
|
|
|