fix: configure header code not dispatch on UI thread issue
This commit is contained in:
parent
4d5d9477fc
commit
8b7b6c4067
|
@ -130,6 +130,7 @@ extension StatusView {
|
|||
authorization: authenticationBox.userAuthorization
|
||||
).singleOutput()
|
||||
}
|
||||
.receive(on: DispatchQueue.main)
|
||||
.sink { completion in
|
||||
// do nothing
|
||||
} receiveValue: { [weak self] response in
|
||||
|
|
|
@ -203,6 +203,7 @@ extension StatusView.ViewModel {
|
|||
statusView.headerInfoLabel.configure(content: info.header)
|
||||
statusView.setHeaderDisplay()
|
||||
case .reply(let info):
|
||||
assert(Thread.isMainThread)
|
||||
statusView.headerIconImageView.image = UIImage(systemName: "arrowshape.turn.up.left.fill")
|
||||
statusView.headerInfoLabel.configure(content: info.header)
|
||||
statusView.setHeaderDisplay()
|
||||
|
|
Loading…
Reference in New Issue