chore: fix timing of successful purchase alert
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user