We are still waiting on a finalized spec for file uploads in encrypted groups. But we could update the ICodec definition to allow different rules for encoding files. The plane text codec should use the file upload and point to create an attachment.
A side issue here is to improve the server so that that attachment can be linked to its parent message. Retroactively. This probably means some kind of a timer (1hour?) that allows the attachment to remain without a parent object temporarily. After the timer expires background process should sweep up unconnected attachments.
We are still waiting on a finalized spec for file uploads in encrypted groups. But we could update the ICodec definition to allow different rules for encoding files. The plane text codec should use the file upload and point to create an attachment.
A side issue here is to improve the server so that that attachment can be linked to its parent message. Retroactively. This probably means some kind of a timer (1hour?) that allows the attachment to remain without a parent object temporarily. After the timer expires background process should sweep up unconnected attachments.