Skip to content
Snippets Groups Projects
Commit 99822968 authored by lain's avatar lain
Browse files

Don't crash on unknown status deletion.

parent 72de9592
No related branches found
No related tags found
No related merge requests found
......@@ -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 })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment