mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
• Updated display pictures and attachments to use a hash derived from the download url instead of a random UUID for the filename • Renamed some database columns for consistency • Dropped a bunch of unused database columns • Removed old quoted attachment thumbnail logic • Fixed an issue where updating the display picture wouldn't update the settings UI • Fixed an issue where image thumbnails may not render correctly • Fixed an issue where some text wouldn't be respect the theme • Fixed a performance issue with one of our list components • Fixed an issue where sharing files wasn't saving the attachment data correctly
25 lines
601 B
Swift
25 lines
601 B
Swift
// Copyright © 2025 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import UIKit
|
|
import AVKit
|
|
|
|
class DismissCallbackAVPlayerViewController: AVPlayerViewController {
|
|
private let onDismiss: () -> Void
|
|
|
|
init(onDismiss: @escaping () -> Void) {
|
|
self.onDismiss = onDismiss
|
|
|
|
super.init(nibName: nil, bundle: nil)
|
|
}
|
|
|
|
required init?(coder: NSCoder) {
|
|
fatalError("init(coder:) has not been implemented")
|
|
}
|
|
|
|
public override func viewDidDisappear(_ animated: Bool) {
|
|
super.viewDidDisappear(animated)
|
|
|
|
self.onDismiss()
|
|
}
|
|
}
|