Skip to content

Commit

Permalink
Rename buttons to open media and files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
matthewrfennell authored and tmolitor-stud-tu committed Sep 25, 2024
1 parent 579bd30 commit 4e67a7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Monal/Classes/ContactDetails.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

Expand Down
2 changes: 1 addition & 1 deletion Monal/Classes/MediaGallery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct MediaGalleryView: View {
}
.padding()
}
.navigationTitle("Media Gallery")
.navigationTitle("Shared Media")
.onAppear {
fetchDownloadedMediaItems()
}
Expand Down

0 comments on commit 4e67a7b

Please sign in to comment.