refs #4653 Clear unreads when changing timeline
This commit is contained in:
parent
1f6683018d
commit
e4d05eeea3
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user