From 4e67a7b5c763a8c034b9c83e374dad412476ccff Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Thu, 26 Sep 2024 00:37:26 +0100 Subject: [PATCH] Rename buttons to open media and files Make the wording consistent with other buttons in the list (only use nouns, no verbs). Shorten the wording and hopefully make it more clear to users the difference between the two. --- Monal/Classes/ContactDetails.swift | 4 ++-- Monal/Classes/MediaGallery.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Monal/Classes/ContactDetails.swift b/Monal/Classes/ContactDetails.swift index 068e536cc..067b7dae5 100644 --- a/Monal/Classes/ContactDetails.swift +++ b/Monal/Classes/ContactDetails.swift @@ -389,13 +389,13 @@ struct ContactDetails: View { let sharedUrl = HelperTools.getSharedDocumentsURL(forPathComponents:[accountJid, displayName]) if UIApplication.shared.canOpenURL(sharedUrl) && FileManager.default.fileExists(atPath:sharedUrl.path) { NavigationLink(destination: LazyClosureView{MediaGalleryView(contact: contact.contactJid as String, accountID: contact.accountID)}) { - Text("View Media Gallery") + Text("Shared Media") } Button(action: { UIApplication.shared.open(sharedUrl, options:[:]) }) { - Text("Show shared Media and Files") + Text("Shared Files") } } diff --git a/Monal/Classes/MediaGallery.swift b/Monal/Classes/MediaGallery.swift index 2496c6db5..2c667d5ca 100644 --- a/Monal/Classes/MediaGallery.swift +++ b/Monal/Classes/MediaGallery.swift @@ -27,7 +27,7 @@ struct MediaGalleryView: View { } .padding() } - .navigationTitle("Media Gallery") + .navigationTitle("Shared Media") .onAppear { fetchDownloadedMediaItems() }