mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
clean
This commit is contained in:
parent
1e1c5a5fde
commit
8d385de389
|
@ -242,18 +242,18 @@ public class DocumentTileViewController: UIViewController, UITableViewDelegate,
|
|||
|
||||
switch section.model {
|
||||
case .emptyGallery, .loadOlder, .loadNewer:
|
||||
let headerView: DocumentStaticHeaderView = DocumentStaticHeaderView()
|
||||
headerView.configure(
|
||||
title: {
|
||||
switch section.model {
|
||||
case .emptyGallery: return "DOCUMENT_TILES_EMPTY_DOCUMENT".localized()
|
||||
case .loadOlder: return "DOCUMENT_TILES_LOADING_OLDER_LABEL".localized()
|
||||
case .loadNewer: return "DOCUMENT_TILES_LOADING_MORE_RECENT_LABEL".localized()
|
||||
case .galleryMonth: return "" // Impossible case
|
||||
}
|
||||
}()
|
||||
)
|
||||
return headerView
|
||||
let headerView: DocumentStaticHeaderView = DocumentStaticHeaderView()
|
||||
headerView.configure(
|
||||
title: {
|
||||
switch section.model {
|
||||
case .emptyGallery: return "DOCUMENT_TILES_EMPTY_DOCUMENT".localized()
|
||||
case .loadOlder: return "DOCUMENT_TILES_LOADING_OLDER_LABEL".localized()
|
||||
case .loadNewer: return "DOCUMENT_TILES_LOADING_MORE_RECENT_LABEL".localized()
|
||||
case .galleryMonth: return "" // Impossible case
|
||||
}
|
||||
}()
|
||||
)
|
||||
return headerView
|
||||
|
||||
case .galleryMonth(let date):
|
||||
let headerView: DocumentSectionHeaderView = DocumentSectionHeaderView()
|
||||
|
|
|
@ -267,6 +267,7 @@ public class MediaGalleryViewModel {
|
|||
return SQL("""
|
||||
\(attachment[.isVisualMedia]) = false AND
|
||||
\(attachment[.isValid]) = true AND
|
||||
\(attachment[.variant]) = \(Attachment.Variant.standard) AND
|
||||
\(interaction[.threadId]) = \(threadId) AND
|
||||
""")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue