From 9982296866f0592747064d3cb6ddfac0fce516b1 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Wed, 7 Jun 2017 17:03:14 +0200 Subject: [PATCH] Don't crash on unknown status deletion. --- src/modules/statuses.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 98a8d16d..2546a2de 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -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 })