Don't crash on unknown status deletion.
This commit is contained in:
parent
72de959221
commit
9982296866
@ -244,6 +244,10 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
|
||||
|
||||
// Remove possible notification
|
||||
const status = find(allStatuses, {uri})
|
||||
if (!status) {
|
||||
return
|
||||
}
|
||||
|
||||
remove(state.notifications, ({action: {id}}) => status.id)
|
||||
|
||||
remove(allStatuses, { uri })
|
||||
|
Loading…
Reference in New Issue
Block a user