Skip to content

Commit

Permalink
Merge pull request #3131 from tahowallet/daylight-account-fixes
Browse files Browse the repository at this point in the history
Daylight - Only poll ablities for imported addresses
  • Loading branch information
kkosiorowska authored Mar 9, 2023
2 parents c16ed7f + fc51c5d commit f7ddbf0
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions background/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,8 @@ export default class Main extends BaseService<never> {
network,
}
await this.chainService.addAccountToTrack(addressNetwork)
this.abilitiesService.getNewAccountAbilities(address)

this.store.dispatch(loadAccount(addressNetwork))
})
)
Expand Down Expand Up @@ -1081,6 +1083,7 @@ export default class Main extends BaseService<never> {
address,
network,
})
this.abilitiesService.getNewAccountAbilities(address)
})
})

Expand Down Expand Up @@ -1570,14 +1573,6 @@ export default class Main extends BaseService<never> {
this.abilitiesService.emitter.on("deleteAccount", (address) => {
this.store.dispatch(deleteAccountFilter(address))
})

this.keyringService.emitter.on("address", (address) =>
this.abilitiesService.getNewAccountAbilities(address)
)

this.ledgerService.emitter.on("address", ({ address }) =>
this.abilitiesService.getNewAccountAbilities(address)
)
}

async getActivityDetails(txHash: string): Promise<ActivityDetail[]> {
Expand Down

0 comments on commit f7ddbf0

Please sign in to comment.