Skip to content

Fix/attachment filename finetuning #886

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 71 commits into from
Jan 20, 2025
Merged

Conversation

AL-Session
Copy link
Contributor

Fine-tuning of the filename synthesis when receiving attachments will null filenames:

  • Cleaned up uri.path timestamp extraction,
  • Audio files and voice messages are distinguished between via the attachment.isVoiceNote flag (resulting appropriate filenames like Session-VoiceMessage_<Date>.<Ext> and Session-Audio_<Date>.<Ext>,
  • We always get at least the now timestamp in the file, and it never changes once set (so multiple saves result in the same filename - although they will get a -1, -2, -3 suffix etc. if the resulting save would overwrite an existing file.

alansley and others added 30 commits December 18, 2024 15:36
…r things - will need to rework this in 2025 =/
alansley and others added 25 commits January 14, 2025 14:31
… generation - should be very comprehensive now
Removed logic from libsession
Sanitising file names before saving them to storage
Made sure we don't displa a date when getting filename from Slide otherwise it'll keep changing
@AL-Session AL-Session merged commit 5cd8e34 into dev Jan 20, 2025
1 check passed
@AL-Session AL-Session deleted the fix/attachment-filename-finetuning branch January 20, 2025 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants