diff --git a/.eslintignore b/.eslintignore index 6ffa7ebf6270..79b6e678a63b 100644 --- a/.eslintignore +++ b/.eslintignore @@ -23,16 +23,17 @@ ts/**/*.js !js/logging.js !js/models/conversations.js !js/models/messages.js -!test/backup_test.js !js/views/attachment_view.js -!js/views/conversation_view.js -!js/views/conversation_search_view.js !js/views/backbone_wrapper_view.js +!js/views/conversation_search_view.js +!js/views/conversation_view.js !js/views/debug_log_view.js !js/views/file_input_view.js !js/views/inbox_view.js !js/views/message_view.js !js/views/settings_view.js +!test/backup_test.js +!test/views/attachment_view_test.js !libtextsecure/message_receiver.js !main.js !preload.js diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 7bbe4199047d..5f8877d0ffc5 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -326,10 +326,18 @@ "message": "Media", "description": "Header of the default pane in the media gallery, showing images and videos" }, + "mediaEmptyState": { + "message": "You don’t have any media in this conversation", + "description": "Message shown to user in the media gallery when there are no messages with media attachments (images or video)" + }, "documents": { "message": "Documents", "description": "Header of the secondary pane in the media gallery, showing every non-media attachment" }, + "documentsEmptyState": { + "message": "You don’t have any documents in this conversation", + "description": "Message shown to user in the media gallery when there are no messages with document attachments (anything other than images or video)" + }, "messageCaption": { "message": "Message caption", "description": "Prefix of attachment alt tags in the media gallery" diff --git a/app/attachments.js b/app/attachments.js index cdbf724e4f33..8ce961b49128 100644 --- a/app/attachments.js +++ b/app/attachments.js @@ -114,7 +114,7 @@ exports.createName = () => { return buffer.toString('hex'); }; -// getRelativePath :: String -> IO Path +// getRelativePath :: String -> Path exports.getRelativePath = (name) => { if (!isString(name)) { throw new TypeError("'name' must be a string"); @@ -123,3 +123,7 @@ exports.getRelativePath = (name) => { const prefix = name.slice(0, 2); return path.join(prefix, name); }; + +// createAbsolutePathGetter :: RoothPath -> RelativePath -> AbsolutePath +exports.createAbsolutePathGetter = rootPath => relativePath => + path.join(rootPath, relativePath); diff --git a/background.html b/background.html index 0a5665df318e..7bdbf5f8742c 100644 --- a/background.html +++ b/background.html @@ -160,8 +160,7 @@