refs #607 Reduce statuses when merge timeline
This commit is contained in:
parent
efc6c63450
commit
7fceabaa35
|
@ -25,7 +25,7 @@ const Tag = {
|
|||
state.timeline = timeline
|
||||
},
|
||||
mergeTimeline (state) {
|
||||
state.timeline = state.unreadTimeline.concat(state.timeline)
|
||||
state.timeline = state.unreadTimeline.slice(0, 80).concat(state.timeline)
|
||||
state.unreadTimeline = []
|
||||
},
|
||||
insertTimeline (state, messages) {
|
||||
|
|
|
@ -27,7 +27,7 @@ const Home = {
|
|||
state.timeline = messages
|
||||
},
|
||||
mergeTimeline (state) {
|
||||
state.timeline = state.unreadTimeline.concat(state.timeline)
|
||||
state.timeline = state.unreadTimeline.slice(0, 80).concat(state.timeline)
|
||||
state.unreadTimeline = []
|
||||
},
|
||||
insertTimeline (state, messages) {
|
||||
|
|
|
@ -25,7 +25,7 @@ const Show = {
|
|||
state.timeline = timeline
|
||||
},
|
||||
mergeTimeline (state) {
|
||||
state.timeline = state.unreadTimeline.concat(state.timeline)
|
||||
state.timeline = state.unreadTimeline.slice(0, 80).concat(state.timeline)
|
||||
state.unreadTimeline = []
|
||||
},
|
||||
insertTimeline (state, messages) {
|
||||
|
|
|
@ -24,7 +24,7 @@ const Local = {
|
|||
state.timeline = messages
|
||||
},
|
||||
mergeTimeline (state) {
|
||||
state.timeline = state.unreadTimeline.concat(state.timeline)
|
||||
state.timeline = state.unreadTimeline.slice(0, 80).concat(state.timeline)
|
||||
state.unreadTimeline = []
|
||||
},
|
||||
insertTimeline (state, messages) {
|
||||
|
|
|
@ -28,7 +28,7 @@ const Notifications = {
|
|||
state.notifications = notifications
|
||||
},
|
||||
mergeNotifications (state) {
|
||||
state.notifications = state.unreadNotifications.concat(state.notifications)
|
||||
state.notifications = state.unreadNotifications.slice(0, 80).concat(state.notifications)
|
||||
state.unreadNotifications = []
|
||||
},
|
||||
insertNotifications (state, notifications) {
|
||||
|
|
|
@ -25,7 +25,7 @@ const Public = {
|
|||
state.timeline = messages
|
||||
},
|
||||
mergeTimeline (state, messages) {
|
||||
state.timeline = state.unreadTimeline.concat(state.timeline)
|
||||
state.timeline = state.unreadTimeline.slice(0, 80).concat(state.timeline)
|
||||
state.unreadTimeline = []
|
||||
},
|
||||
insertTimeline (state, messages) {
|
||||
|
|
Loading…
Reference in New Issue