Files
session-ios/Session/Utilities/DismissCallbackAVPlayerViewController.swift
Morgan Pretty 1af2f75230 Refactored attachment handling and small bug fixes
• 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
2025-06-23 15:15:34 +10:00

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()
}
}