Skip to content

Commit f9a3a6a

Browse files
committed
content: Open uploaded files using authed temporary URLs
Fixes zulip#1732.
1 parent 8fb2097 commit f9a3a6a

20 files changed

+169
-5
lines changed

assets/l10n/app_en.arb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,10 @@
329329
"@errorCouldNotFetchMessageSource": {
330330
"description": "Error message when the source of a message could not be fetched."
331331
},
332+
"errorCouldNotAccessUploadedFileTitle": "Could not access uploaded file",
333+
"@errorCouldNotAccessUploadedFileTitle": {
334+
"description": "Error title on failure in opening a file someone previously uploaded to Zulip"
335+
},
332336
"errorCopyingFailed": "Copying failed",
333337
"@errorCopyingFailed": {
334338
"description": "Error message when copying the text of a message to the user's system clipboard failed."

lib/generated/l10n/zulip_localizations.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,12 @@ abstract class ZulipLocalizations {
593593
/// **'Could not fetch message source.'**
594594
String get errorCouldNotFetchMessageSource;
595595

596+
/// Error title on failure in opening a file someone previously uploaded to Zulip
597+
///
598+
/// In en, this message translates to:
599+
/// **'Could not access uploaded file'**
600+
String get errorCouldNotAccessUploadedFileTitle;
601+
596602
/// Error message when copying the text of a message to the user's system clipboard failed.
597603
///
598604
/// In en, this message translates to:

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
277277
String get errorCouldNotFetchMessageSource =>
278278
'Could not fetch message source.';
279279

280+
@override
281+
String get errorCouldNotAccessUploadedFileTitle =>
282+
'Could not access uploaded file';
283+
280284
@override
281285
String get errorCopyingFailed => 'Copying failed';
282286

lib/generated/l10n/zulip_localizations_de.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
285285
String get errorCouldNotFetchMessageSource =>
286286
'Konnte Nachrichtenquelle nicht abrufen.';
287287

288+
@override
289+
String get errorCouldNotAccessUploadedFileTitle =>
290+
'Could not access uploaded file';
291+
288292
@override
289293
String get errorCopyingFailed => 'Kopieren fehlgeschlagen';
290294

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
277277
String get errorCouldNotFetchMessageSource =>
278278
'Could not fetch message source.';
279279

280+
@override
281+
String get errorCouldNotAccessUploadedFileTitle =>
282+
'Could not access uploaded file';
283+
280284
@override
281285
String get errorCopyingFailed => 'Copying failed';
282286

lib/generated/l10n/zulip_localizations_fr.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ class ZulipLocalizationsFr extends ZulipLocalizations {
284284
String get errorCouldNotFetchMessageSource =>
285285
'Impossible d\'atteindre le message source.';
286286

287+
@override
288+
String get errorCouldNotAccessUploadedFileTitle =>
289+
'Could not access uploaded file';
290+
287291
@override
288292
String get errorCopyingFailed => 'Échec de la copie';
289293

lib/generated/l10n/zulip_localizations_it.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
283283
String get errorCouldNotFetchMessageSource =>
284284
'Impossibile recuperare l\'origine del messaggio.';
285285

286+
@override
287+
String get errorCouldNotAccessUploadedFileTitle =>
288+
'Could not access uploaded file';
289+
286290
@override
287291
String get errorCopyingFailed => 'Copia non riuscita';
288292

lib/generated/l10n/zulip_localizations_ja.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,10 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
272272
@override
273273
String get errorCouldNotFetchMessageSource => 'メッセージのソースを取得できませんでした。';
274274

275+
@override
276+
String get errorCouldNotAccessUploadedFileTitle =>
277+
'Could not access uploaded file';
278+
275279
@override
276280
String get errorCopyingFailed => 'コピーに失敗しました';
277281

lib/generated/l10n/zulip_localizations_nb.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
277277
String get errorCouldNotFetchMessageSource =>
278278
'Could not fetch message source.';
279279

280+
@override
281+
String get errorCouldNotAccessUploadedFileTitle =>
282+
'Could not access uploaded file';
283+
280284
@override
281285
String get errorCopyingFailed => 'Copying failed';
282286

lib/generated/l10n/zulip_localizations_pl.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
288288
String get errorCouldNotFetchMessageSource =>
289289
'Nie można uzyskać źródłowej wiadomości.';
290290

291+
@override
292+
String get errorCouldNotAccessUploadedFileTitle =>
293+
'Could not access uploaded file';
294+
291295
@override
292296
String get errorCopyingFailed => 'Nie udało się skopiować';
293297

0 commit comments

Comments
 (0)