Don't crash on unknown status deletion.

This commit is contained in:
Roger Braun 2017-06-07 17:03:14 +02:00
parent 72de959221
commit 9982296866

View file

@ -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 })