Skip to content
Snippets Groups Projects
Commit bd07e5de authored by HJ's avatar HJ :fire:
Browse files

unify showimmideately

parent 43197c42
Branches
No related tags found
No related merge requests found
......@@ -47,7 +47,8 @@ const api = {
startMastoUserSocket (store) {
return new Promise((resolve, reject) => {
try {
const { state, dispatch } = store
const { state, dispatch, rootState } = store
const timelineData = rootState.statuses.timelines.friends
state.mastoUserSocket = state.backendInteractor.startUserSocket({ store })
state.mastoUserSocket.addEventListener(
'message',
......@@ -62,7 +63,7 @@ const api = {
dispatch('addNewStatuses', {
statuses: [message.status],
userId: false,
showImmediately: false,
showImmediately: timelineData.visibleStatuses.length === 0,
timeline: 'friends'
})
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment