You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
Include a file-safe room name and ISO date in chat exports (#9440)
* conversation export named after room
* sanitization added for exported file name
* sanitization added for exported file name
* sanitization added for exported file name
* sanitization added for exported file name=>lint error fixed
* sanitization added for exported file name=>lint error fixed
* sanitization added for exported file name=>redundancy removed
* sanitization added for exported file name=>redundancy removed
* reverted to previous commit
* sanitization added for exported file name=>redundancy removed
* exported chat date iso formatted
* conversation export named after room
* conversation export named after room
Co-authored-by: Michael Telatynski <[email protected]>
* code refacto filename date format
* Add docs to fn
* Bring in a util library for sanitizing
* Extract file naming function and make consistent for all 3 types
Also use the library we dragged in
* Write tests & associated fixes
* Apply linters locally
* Include new date util in index
Co-authored-by: Sinharitik589 <[email protected]>
Co-authored-by: Michael Telatynski <[email protected]>
Co-authored-by: yaya-usman <[email protected]>
Co-authored-by: Sinharitik589 <[email protected]>
Copy file name to clipboardexpand all lines: src/i18n/strings/en_EN.json
+1-1
Original file line number
Diff line number
Diff line change
@@ -756,6 +756,7 @@
756
756
"Zoom in": "Zoom in",
757
757
"Zoom out": "Zoom out",
758
758
"Are you sure you want to exit during this export?": "Are you sure you want to exit during this export?",
759
+
"Unnamed Room": "Unnamed Room",
759
760
"Generating a ZIP": "Generating a ZIP",
760
761
"Fetched %(count)s events out of %(total)s|other": "Fetched %(count)s events out of %(total)s",
761
762
"Fetched %(count)s events out of %(total)s|one": "Fetched %(count)s event out of %(total)s",
@@ -2768,7 +2769,6 @@
2768
2769
"Or send invite link": "Or send invite link",
2769
2770
"Unnamed Space": "Unnamed Space",
2770
2771
"Invite to %(roomName)s": "Invite to %(roomName)s",
2771
-
"Unnamed Room": "Unnamed Room",
2772
2772
"Invite someone using their name, email address, username (like <userId/>) or <a>share this space</a>.": "Invite someone using their name, email address, username (like <userId/>) or <a>share this space</a>.",
2773
2773
"Invite someone using their name, username (like <userId/>) or <a>share this space</a>.": "Invite someone using their name, username (like <userId/>) or <a>share this space</a>.",
2774
2774
"Invite someone using their name, email address, username (like <userId/>) or <a>share this room</a>.": "Invite someone using their name, email address, username (like <userId/>) or <a>share this room</a>.",
exports[`HTMLExport should have an SDK-branded destination file name 1`] =`"Element - My Test Room Welcome - Chat Export - 2022-11-17T16-58-32.517Z.zip"`;
4
+
5
+
exports[`HTMLExport should have an SDK-branded destination file name 2`] =`"BrandedChatWithSlashesForFun - My Test Room Welcome - Chat Export - 2022-11-17T16-58-32.517Z.zip"`;
exports[`JSONExport should have a Matrix-branded destination file name 1`] =`"matrix - My Test Room Welcome - Chat Export - 2022-11-17T16-58-32.517Z.json"`;
exports[`PlainTextExport should have a Matrix-branded destination file name 1`] =`"matrix - My Test Room Welcome - Chat Export - 2022-11-17T16-58-32.517Z.txt"`;
0 commit comments