Subtract stars balance automatically

This commit is contained in:
Isaac
2024-08-13 00:03:03 +08:00
parent af4d13febe
commit 2fee6401b3
7 changed files with 86 additions and 9 deletions

View File

@@ -304,6 +304,8 @@ public final class AccountContextImpl: AccountContext {
self.starsContext = nil
}
self.account.stateManager.starsContext = self.starsContext
if let locationManager = self.sharedContextImpl.locationManager, sharedContext.applicationBindings.isMainApp && !temp {
self.peersNearbyManager = PeersNearbyManagerImpl(account: account, engine: self.engine, locationManager: locationManager, inForeground: sharedContext.applicationBindings.applicationInForeground)
} else {