diff --git a/src/ui/NativeApp.vue b/src/ui/NativeApp.vue index dc8aa62311..c743895dc7 100644 --- a/src/ui/NativeApp.vue +++ b/src/ui/NativeApp.vue @@ -30,6 +30,7 @@ export default { async created() { setInterval(() => { this.$store.dispatch(actions.LOAD_ACCOUNTS) + this.$store.dispatch(actions.LOAD_TREE) }, 5000) const controller = await Controller.getSingleton() controller.onLoad() diff --git a/src/ui/store/native/actions.js b/src/ui/store/native/actions.js index 6d4cea852f..0141d4a9f4 100644 --- a/src/ui/store/native/actions.js +++ b/src/ui/store/native/actions.js @@ -29,13 +29,9 @@ export const actionsDefinition = { async [actions.LOAD_TREE]({ commit, dispatch, state }, id) { const account = await Account.get(id) const tree = await account.getResource() - const treeChanged = await tree.load() + await tree.load() const rootFolder = await tree.getBookmarksTree(true) await commit(mutations.LOAD_TREE, rootFolder) - if (treeChanged) { - dispatch(actions.TRIGGER_SYNC, id) - dispatch(actions.LOAD_ACCOUNTS, id) - } }, async [actions.CREATE_BOOKMARK]({commit}, {accountId, bookmark}) { const account = await Account.get(accountId)