Fix crash due to leaked table view cell
This commit is contained in:
parent
1cd3e6adf9
commit
0986fa285e
|
@ -58,7 +58,8 @@ class TimelineStatusTableViewCell: BaseStatusTableViewCell {
|
||||||
.filter { [unowned self] in $0 == self.rebloggerID }
|
.filter { [unowned self] in $0 == self.rebloggerID }
|
||||||
.receive(on: DispatchQueue.main)
|
.receive(on: DispatchQueue.main)
|
||||||
.sink { [unowned self] in
|
.sink { [unowned self] in
|
||||||
if let reblogger = self.mastodonController.persistentContainer.account(for: $0) {
|
if let mastodonController = self.mastodonController,
|
||||||
|
let reblogger = mastodonController.persistentContainer.account(for: $0) {
|
||||||
self.updateRebloggerLabel(reblogger: reblogger)
|
self.updateRebloggerLabel(reblogger: reblogger)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue