mail
mail copied to clipboard
fix: set createdAt timestamp for local attachments
Local copy of https://github.com/nextcloud/mail/pull/11943 with squashed commits.
- Inject ITimeFactory into AttachmentService constructor
- Set createdAt using timeFactory.getTime() when creating attachments
- Update unit tests to mock ITimeFactory and expect createdAt value
- Update integration tests to pass ITimeFactory dependency