From 67628e5d73e34da254626e58d2615c12fc4b91cd Mon Sep 17 00:00:00 2001 From: Denis Shilovich Date: Mon, 13 Jan 2025 12:24:00 +0000 Subject: [PATCH] 1.9.4 (416) --- submodules/TelegramUI/BUILD | 4 +- .../TelegramUI/Sources/AppDelegate.swift | 54 +++++++++---------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/submodules/TelegramUI/BUILD b/submodules/TelegramUI/BUILD index 732f19b27c..167321a2cb 100644 --- a/submodules/TelegramUI/BUILD +++ b/submodules/TelegramUI/BUILD @@ -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( diff --git a/submodules/TelegramUI/Sources/AppDelegate.swift b/submodules/TelegramUI/Sources/AppDelegate.swift index fc9e3cf3ca..6c68f220bd 100644 --- a/submodules/TelegramUI/Sources/AppDelegate.swift +++ b/submodules/TelegramUI/Sources/AppDelegate.swift @@ -21,8 +21,8 @@ import AvatarNode import NGLab import NGCollectInformation import Combine -import NGPersonalityCore -import NGPersonality +//import NGPersonalityCore +//import NGPersonality // import UIKit import SwiftSignalKit @@ -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 +// ) } }) // @@ -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)) +// } } }) //