Apply “translated from” label to StatusView accessibilityLabel

This commit is contained in:
Jed Fox 2023-02-06 21:52:26 -05:00
parent 32fbbc37c1
commit 7e9655e903
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
1 changed files with 4 additions and 3 deletions

View File

@ -857,13 +857,14 @@ extension StatusView.ViewModel {
} }
.store(in: &disposeBag) .store(in: &disposeBag)
Publishers.CombineLatest3( Publishers.CombineLatest4(
shortAuthorAccessibilityLabel, shortAuthorAccessibilityLabel,
contentAccessibilityLabel, contentAccessibilityLabel,
translatedFromLabel,
mediaAccessibilityLabel mediaAccessibilityLabel
) )
.map { author, content, media in .map { author, content, translated, media in
var labels: [String?] = [content, media] var labels: [String?] = [content, translated, media]
if statusView.style != .notification { if statusView.style != .notification {
labels.insert(author, at: 0) labels.insert(author, at: 0)