Add noIdUpdate option for addNewStatuses action.

This fixes #11.
This commit is contained in:
Roger Braun 2016-11-28 21:25:36 +01:00
parent bb1b3c3975
commit 9681bb7bfd
3 changed files with 25 additions and 7 deletions

View file

@ -7,8 +7,12 @@ const postStatus = ({ store, status, media = [], inReplyToStatusId = undefined }
return apiService.postStatus({credentials: store.state.users.currentUser.credentials, status, mediaIds, inReplyToStatusId})
.then((data) => data.json())
.then((data) => {
store.dispatch('addNewStatuses',
{ statuses: [data], timeline: 'friends', showImmediately: true })
store.dispatch('addNewStatuses', {
statuses: [data],
timeline: 'friends',
showImmediately: true,
noIdUpdate: true // To prevent missing notices on next pull.
})
})
}