Merge branch 'migrate-accounts-to-idb' into sw-notification-action

This commit is contained in:
tamaina
2021-07-27 01:46:20 +09:00
4 changed files with 18 additions and 6 deletions

View File

@@ -135,7 +135,7 @@ export default defineComponent({
},
async openAccountMenu(ev) {
const storedAccounts = (await getAccounts()).filter(x => x.id !== this.$i.id);
const storedAccounts = await getAccounts().then(accounts => accounts.filter(x => x.id !== this.$i.id));
const accountsPromise = os.api('users/show', { userIds: storedAccounts.map(x => x.id) });
const accountItemPromises = storedAccounts.map(a => new Promise(res => {