refs #607 Reduce statuses when merge timeline

This commit is contained in:
AkiraFukushima 2018-09-18 16:30:32 +09:00
parent efc6c63450
commit 7fceabaa35
6 changed files with 6 additions and 6 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {