forked from zelo72/mastodon-ios
fix: remove entity raise crash issue
This commit is contained in:
parent
36273467c1
commit
87d93f3c9d
|
@ -449,7 +449,8 @@ extension StatusSection {
|
||||||
} receiveValue: { [weak dependency, weak cell] change in
|
} receiveValue: { [weak dependency, weak cell] change in
|
||||||
guard let dependency = dependency else { return }
|
guard let dependency = dependency else { return }
|
||||||
guard case .update(let object) = change.changeType,
|
guard case .update(let object) = change.changeType,
|
||||||
let status = object as? Status else { return }
|
let status = object as? Status,
|
||||||
|
!status.isDeleted else { return }
|
||||||
guard let statusTableViewCell = cell as? StatusTableViewCell else { return }
|
guard let statusTableViewCell = cell as? StatusTableViewCell else { return }
|
||||||
StatusSection.configureActionToolBar(
|
StatusSection.configureActionToolBar(
|
||||||
cell: statusTableViewCell,
|
cell: statusTableViewCell,
|
||||||
|
@ -648,7 +649,7 @@ extension StatusSection {
|
||||||
.assertNoFailure()
|
.assertNoFailure()
|
||||||
)
|
)
|
||||||
.receive(on: DispatchQueue.main)
|
.receive(on: DispatchQueue.main)
|
||||||
.sink { [weak dependency, weak cell] _,change in
|
.sink { [weak dependency, weak cell] _, change in
|
||||||
guard let cell = cell else { return }
|
guard let cell = cell else { return }
|
||||||
guard let dependency = dependency else { return }
|
guard let dependency = dependency else { return }
|
||||||
switch change.changeType {
|
switch change.changeType {
|
||||||
|
|
Loading…
Reference in New Issue