Fix conversation reloading on appear

This commit is contained in:
Shadowfacts 2023-01-18 13:59:42 -05:00
parent ccfc8331fb
commit 5623cedab3
1 changed files with 3 additions and 1 deletions

View File

@ -111,9 +111,11 @@ class ConversationViewController: UIViewController {
super.viewWillAppear(animated) super.viewWillAppear(animated)
Task { Task {
if case .unloaded = state {
await loadMainStatus() await loadMainStatus()
} }
} }
}
@objc private func handleStatusDeleted(_ notification: Foundation.Notification) { @objc private func handleStatusDeleted(_ notification: Foundation.Notification) {
guard let userInfo = notification.userInfo, guard let userInfo = notification.userInfo,