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 (userRolesChanged && !isInitialLoadRolesChange) {
|
||||||
if (this.onlineRolesIncludePaidSubscription()) {
|
if (this.onlineRolesIncludePaidSubscription()) {
|
||||||
await this.notifyEvent(FeaturesEvent.DidPurchaseSubscription)
|
await this.notifyEvent(FeaturesEvent.DidPurchaseSubscription)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.setOnlineRoles(roles)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
didChangeRoles: true,
|
didChangeRoles: true,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user