diff --git a/src/app.jsx b/src/app.jsx index 27268c59..e86df9bc 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -56,7 +56,9 @@ async function startStream() { }); stream.on('delete', (statusID) => { console.log('DELETE', statusID); - states.statuses.delete(statusID); + // states.statuses.delete(statusID); + const s = states.statuses.get(statusID); + if (s) s._deleted = true; }); stream.on('notification', (notification) => { console.log('NOTIFICATION', notification); diff --git a/src/components/status.jsx b/src/components/status.jsx index 412cef22..231b3489 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -99,6 +99,7 @@ function Status({ reblog, uri, emojis, + _deleted, } = status; const createdAtDate = new Date(createdAt);