Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
}

contentViewController?.searchQueries = collectionController?.currentTextSearchQuery ?? []

Check warning on line 38 in wire-ios/Wire-iOS/Sources/UserInterface/Conversation/ConversationViewController+ViewLifeCycle.swift

View workflow job for this annotation

GitHub Actions / Test Results

'shared()' is deprecated: This shared instance has been deprecated. Don't use it.

'shared()' is deprecated: This shared instance has been deprecated. Don't use it.
ZMUserSession.shared()?.didOpen(conversation: conversation)

isAppearing = false

syncCellsStateIfPending()
syncCellsState()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@

override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
updateLeftNavigationBarItems()

Check warning on line 332 in wire-ios/Wire-iOS/Sources/UserInterface/Conversation/ConversationViewController.swift

View workflow job for this annotation

GitHub Actions / Test Results

'shared()' is deprecated: This shared instance has been deprecated. Don't use it.

'shared()' is deprecated: This shared instance has been deprecated. Don't use it.
ZMUserSession.shared()?.didClose(conversation: conversation)
}

Expand Down Expand Up @@ -406,7 +406,7 @@

@objc
func didTapMediaBar(_ tapGestureRecognizer: UITapGestureRecognizer?) {
if let appDelegate = UIApplication.shared.delegate as? AppDelegate,

Check warning on line 409 in wire-ios/Wire-iOS/Sources/UserInterface/Conversation/ConversationViewController.swift

View workflow job for this annotation

GitHub Actions / Test Results

'mediaPlaybackManager' is deprecated: Will be removed

'mediaPlaybackManager' is deprecated: Will be removed
let mediaPlayingMessage = appDelegate.mediaPlaybackManager?.activeMediaPlayer?.sourceMessage,
conversation === mediaPlayingMessage.conversationLike {
contentViewController?.scroll(to: mediaPlayingMessage, completion: nil)
Expand Down Expand Up @@ -722,7 +722,7 @@
extension ConversationViewController: ZMConversationListObserver {
func conversationListDidChange(_ changeInfo: ConversationListChangeInfo) {
updateLeftNavigationBarItems()
if changeInfo.deletedObjects.contains(conversation) {

Check warning on line 725 in wire-ios/Wire-iOS/Sources/UserInterface/Conversation/ConversationViewController.swift

View workflow job for this annotation

GitHub Actions / Test Results

'shared' is deprecated: Please don't access this property, it will be deleted.

'shared' is deprecated: Please don't access this property, it will be deleted.
ZClientViewController.shared?.transitionToList(animated: true, completion: nil)
}
}
Expand Down Expand Up @@ -879,10 +879,10 @@
filesView.presentOverAll(animated: true)
}

/// If cells state is pending we need to sync it to ensure the value is up to date
/// as it might have been updated to a `ready` state.
func syncCellsStateIfPending() {
guard wireCellsState == .pending else {
/// If cells state is different than ready we need to sync it when view appears to ensure the value is up to date
/// as it might have been updated to either a `pending` or `ready` state.
func syncCellsState() {
guard wireCellsState != .ready else {
return
}

Expand Down
Loading