Skip to content

Commit

Permalink
1.9.4 (416)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis15yo committed Jan 13, 2025
1 parent f9856c7 commit a30ff9d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 17 deletions.
4 changes: 2 additions & 2 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Nicegram/NGPersonalityCore/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ swift_library(
"Sources/**/*.swift",
]),
deps = [
"@swiftpkg_nicegram_assistant_ios//:FeatPersonality",
"@swiftpkg_nicegram_assistant_ios//:FeatPersonalityUI"
"@swiftpkg_nicegram_assistant_ios//:FeatPersonality"
],
visibility = [
"//visibility:public",
Expand Down
2 changes: 1 addition & 1 deletion Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"location" : "[email protected]:mobyrix/nicegram-assistant-ios.git",
"state" : {
"branch" : "feat/NCG-6903_personality",
"revision" : "6e95acf571edf2a073506594a4f27ff4fe00e842"
"revision" : "44abe1c8085133a73023e4d22e76374d668adb60"
}
},
{
Expand Down
2 changes: 0 additions & 2 deletions submodules/TelegramUI/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ NGDEPS = [
"@swiftpkg_nicegram_assistant_ios//:NGEntryPoint",
"@swiftpkg_nicegram_assistant_ios//:_NGRemoteConfig",
"//Nicegram/NGCollectInformation:NGCollectInformation",
"@swiftpkg_nicegram_assistant_ios//:FeatPersonalityUI",
"@swiftpkg_nicegram_assistant_ios//:FeatPersonality",
"//Nicegram/NGPersonalityCore:NGPersonalityCore",
"//Nicegram/NGPersonality:NGPersonality",
]
Expand Down
17 changes: 7 additions & 10 deletions submodules/TelegramUI/Sources/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,12 @@ import NGStats
import NGStrings
import NGUtils
import NicegramWallet
import NGPersonalityCore
import NGPersonality
import Combine
import AvatarNode
import NGLab
import FeatPersonality
import NGCollectInformation
import Combine
import FeatPersonality
import NGPersonalityCore
import NGPersonality
//
import UIKit
import SwiftSignalKit
Expand Down Expand Up @@ -378,7 +375,7 @@ private class UserInterfaceStyleObserverWindow: UIWindow {
private let voipDeviceToken = Promise<Data?>(nil)
private let regularDeviceToken = Promise<Data?>(nil)
// MARK: Nicegram NCG-6903 Nicegram Personality
private let personalityInput = CurrentValueSubject<PersonalityContainer.Input, Never>(.refresh(0))
private let personalityInput = CurrentValueSubject<(Int64, String?, UIImage?, Int?), Never>((0, nil, nil, nil))
private let personalityOutput = CurrentValueSubject<Void, Never>(())

func loadUserInformation(with context: AccountContext) {
Expand Down Expand Up @@ -412,7 +409,7 @@ private class UserInterfaceStyleObserverWindow: UIWindow {
}

_ = signal.start(next: { [weak self] result in
self?.personalityInput.send(.user(result.0, result.1, result.2, result.3))
self?.personalityInput.send(result)
})
}
//
Expand Down Expand Up @@ -2315,13 +2312,13 @@ private class UserInterfaceStyleObserverWindow: UIWindow {
notificationName: UIApplication.didBecomeActiveNotification
)
collectGhostScore(with: context.context) { [weak self] in
self?.personalityInput.send(.refresh(id))
self?.personalityInput.send((id, nil, nil, nil))
}
collectInfluencerScore(with: context.context) { [weak self] in
self?.personalityInput.send(.refresh(id))
self?.personalityInput.send((id, nil, nil, nil))
}
collectMessagesActivity(with: context.context) { [weak self] in
self?.personalityInput.send(.refresh(id))
self?.personalityInput.send((id, nil, nil, nil))
}
}
})
Expand Down

0 comments on commit a30ff9d

Please sign in to comment.