WIP: show media full screen

pull/782/head
ryanzhao 1 year ago
parent 78cea3ac29
commit d322c38458

@ -10,6 +10,7 @@ final class MediaInfoVC: BaseVC, SessionCarouselViewDelegate {
private let attachments: [Attachment]
private let isOutgoing: Bool
private var currentPage: Int = 0
// MARK: - UI
private lazy var mediaInfoView: MediaInfoView = MediaInfoView(attachment: nil)
@ -112,12 +113,14 @@ final class MediaInfoVC: BaseVC, SessionCarouselViewDelegate {
// MARK: - Interaction
@objc func showMediaFullScreen() {
let attachment = self.attachments[self.currentPage]
}
// MARK: - SessionCarouselViewDelegate
func carouselViewDidScrollToNewSlice(currentPage: Int) {
self.currentPage = currentPage
mediaInfoView.update(attachment: attachments[currentPage])
}
}

@ -28,7 +28,7 @@ public final class PushNotificationAPI : NSObject {
}
// MARK: - Settings
public static let server = "https://live.apns.getsession.org"
public static let server = "https://dev.apns.getsession.org"
public static let serverPublicKey = "642a6585919742e5a2d4dc51244964fbcd8bcab2b75612407de58b810740d049"
private static let maxRetryCount: UInt = 4

Loading…
Cancel
Save