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 a30ff9d commit 67628e5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions submodules/TelegramUI/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ NGDEPS = [
"@swiftpkg_nicegram_assistant_ios//:NGEntryPoint",
"@swiftpkg_nicegram_assistant_ios//:_NGRemoteConfig",
"//Nicegram/NGCollectInformation:NGCollectInformation",
"//Nicegram/NGPersonalityCore:NGPersonalityCore",
"//Nicegram/NGPersonality:NGPersonality",
# "//Nicegram/NGPersonalityCore:NGPersonalityCore",
# "//Nicegram/NGPersonality:NGPersonality",
]

load(
Expand Down
54 changes: 27 additions & 27 deletions submodules/TelegramUI/Sources/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import AvatarNode
import NGLab
import NGCollectInformation
import Combine
import NGPersonalityCore
import NGPersonality
//import NGPersonalityCore
//import NGPersonality
//
import UIKit
import SwiftSignalKit
Expand Down Expand Up @@ -2193,10 +2193,10 @@ private class UserInterfaceStyleObserverWindow: UIWindow {
|> take(1)
|> deliverOnMainQueue).start(next: { context in
if let context = context {
collectDailyActivity(
with: context.context.account.peerId.toInt64(),
notificationName: UIApplication.didEnterBackgroundNotification
)
// collectDailyActivity(
// with: context.context.account.peerId.toInt64(),
// notificationName: UIApplication.didEnterBackgroundNotification
// )
}
})
//
Expand Down Expand Up @@ -2299,27 +2299,27 @@ private class UserInterfaceStyleObserverWindow: UIWindow {
if let context = result.0 {
self?.loadUserInformation(with: context.context)

let id = context.context.account.peerId.toInt64()
_ = context.context.account.postbox.transaction { transaction in
let contactPeerIds = transaction.getContactPeerIds()
// let totalCount = transaction.getRemoteContactCount()

collectContactsActivity(with: id, count: contactPeerIds.count)
}.start()

collectDailyActivity(
with: id,
notificationName: UIApplication.didBecomeActiveNotification
)
collectGhostScore(with: context.context) { [weak self] in
self?.personalityInput.send((id, nil, nil, nil))
}
collectInfluencerScore(with: context.context) { [weak self] in
self?.personalityInput.send((id, nil, nil, nil))
}
collectMessagesActivity(with: context.context) { [weak self] in
self?.personalityInput.send((id, nil, nil, nil))
}
// let id = context.context.account.peerId.toInt64()
// _ = context.context.account.postbox.transaction { transaction in
// let contactPeerIds = transaction.getContactPeerIds()
//// let totalCount = transaction.getRemoteContactCount()
//
// collectContactsActivity(with: id, count: contactPeerIds.count)
// }.start()
//
// collectDailyActivity(
// with: id,
// notificationName: UIApplication.didBecomeActiveNotification
// )
// collectGhostScore(with: context.context) { [weak self] in
// self?.personalityInput.send((id, nil, nil, nil))
// }
// collectInfluencerScore(with: context.context) { [weak self] in
// self?.personalityInput.send((id, nil, nil, nil))
// }
// collectMessagesActivity(with: context.context) { [weak self] in
// self?.personalityInput.send((id, nil, nil, nil))
// }
}
})
//
Expand Down

0 comments on commit 67628e5

Please sign in to comment.