chore: fix timing of successful purchase alert

This commit is contained in:
Mo
2023-05-05 08:52:10 -05:00
parent a2dedd2675
commit a7128fb6d6

View File

@@ -416,14 +416,14 @@ export class SNFeaturesService
}
}
await this.setOnlineRoles(roles)
if (userRolesChanged && !isInitialLoadRolesChange) {
if (this.onlineRolesIncludePaidSubscription()) {
await this.notifyEvent(FeaturesEvent.DidPurchaseSubscription)
}
}
await this.setOnlineRoles(roles)
return {
didChangeRoles: true,
}