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

pull/889/head
Morgan Pretty 2 years ago
parent 517fb13dcc
commit 55975fef40

@ -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

Loading…
Cancel
Save