Fixed an issue where shared attachments to communities weren't persisted

This commit is contained in:
Morgan Pretty 2023-08-18 17:16:11 +10:00
parent 517fb13dcc
commit 55975fef40
1 changed files with 2 additions and 0 deletions

View File

@ -377,6 +377,8 @@ public enum DeadlockWorkAround {
threadId: openGroup.id,
threadVariant: .community,
message: processedMessage.messageInfo.message,
preparedAttachments: message.attachments?
.reduce(into: [:]) { result, next in result[next.serverId ?? ""] = next },
serverExpirationTimestamp: processedMessage.messageInfo.serverExpirationTimestamp,
associatedWithProto: processedMessage.proto,
using: dependencies