forked from AkkomaGang/akkoma-fe
Don't crash on unknown status deletion.
This commit is contained in:
parent
72de959221
commit
9982296866
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue