diff --git a/renderer/components/timelines/Notifications.tsx b/renderer/components/timelines/Notifications.tsx index f019e12d41..75a6b4f96f 100644 --- a/renderer/components/timelines/Notifications.tsx +++ b/renderer/components/timelines/Notifications.tsx @@ -48,6 +48,9 @@ export default function Notifications(props: Props) { f() return () => { + setUnreads([]) + setFirstItemIndex(TIMELINE_MAX_STATUSES) + setNotifications([]) if (streaming.current) { streaming.current.removeAllListeners() streaming.current.stop() diff --git a/renderer/components/timelines/Timeline.tsx b/renderer/components/timelines/Timeline.tsx index 720ef5be24..59514cf136 100644 --- a/renderer/components/timelines/Timeline.tsx +++ b/renderer/components/timelines/Timeline.tsx @@ -94,6 +94,9 @@ export default function Timeline(props: Props) { f() return () => { + setUnreads([]) + setFirstItemIndex(TIMELINE_MAX_STATUSES) + setStatuses([]) if (streaming.current) { streaming.current.removeAllListeners() streaming.current.stop()