Tusker/Tusker/Views/Notifications
Shadowfacts 244659c262
Fix intermittent crash
If a status in a conversation view controller creates a work item to
update the timestamp in 1 minute, but the view controller is deinit'd
before that time elapses, the mastodonController instance will be nil,
resulting in a crash.

The DispatchWorkItems's are cancelled by the respective cell deinit
methods. But if the work item has already begun, cancelling it has no
effect, potentially leading to a crash in the conditions described above
are true. Using a weak reference to self fixes this.

Additionally, don't unnecessarily recreate the work items every time.
They don't capture any local variables, only self, so nothing changes.
2020-03-01 18:33:44 -05:00
..
ActionNotificationGroupTableViewCell.swift Fix intermittent crash 2020-03-01 18:33:44 -05:00
ActionNotificationGroupTableViewCell.xib Replace content labels with text views 2020-01-18 16:05:00 -05:00
FollowNotificationGroupTableViewCell.swift Fix intermittent crash 2020-03-01 18:33:44 -05:00
FollowNotificationGroupTableViewCell.xib Add timestamp to follow notifications 2019-09-05 19:53:08 -04:00
FollowRequestNotificationTableViewCell.swift Fix intermittent crash 2020-03-01 18:33:44 -05:00
FollowRequestNotificationTableViewCell.xib Show follow requsts in notifications w/ accept/reject buttons 2020-01-04 23:13:23 -05:00