Skip to content

Commit

Permalink
1.8.9 (371)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis15yo committed Nov 13, 2024
1 parent f2b6b13 commit a91ebb9
Show file tree
Hide file tree
Showing 27 changed files with 19 additions and 255 deletions.
8 changes: 4 additions & 4 deletions MODULE.bazel.lock

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

19 changes: 0 additions & 19 deletions Nicegram/NGData/Sources/NGSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,25 +120,6 @@ public struct NGSettings {
public static var hideBadgeCounters: Bool
}

public extension NGSettings {
struct ChatDisplaySettings: Codable {
public var enableGrayscale: Bool = false
}

@NGStorage(key: "chatDisplaySettings", defaultValue: ChatDisplaySettings())
static var chatDisplaySettings
}

public extension NGSettings {
struct ChatListDisplaySettings: Codable {
public var disableAnimations: Bool = false
public var enableGrayscale: Bool = false
}

@NGStorage(key: "chatListDisplaySettings", defaultValue: ChatListDisplaySettings())
static var chatListDisplaySettings
}

public struct NGWebSettings {
// MARK: Remote Settings
@NGStorage(key: "syncPins", defaultValue: false)
Expand Down
22 changes: 2 additions & 20 deletions Nicegram/NGUI/Sources/NicegramSettingsController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ private enum EasyToggleType {
case hideReactions
case hideStories
case hideBadgeCounters
case enableAnimationsInChatList
case enableGrayscaleInChatList
case enableGrayscaleInChat
}


Expand Down Expand Up @@ -547,12 +544,6 @@ private enum NicegramSettingsControllerEntry: ItemListNodeEntry {
}
case .hideBadgeCounters:
NGSettings.hideBadgeCounters = value
case .enableAnimationsInChatList:
NGSettings.chatListDisplaySettings.disableAnimations = !value
case .enableGrayscaleInChatList:
NGSettings.chatListDisplaySettings.enableGrayscale = value
case .enableGrayscaleInChat:
NGSettings.chatDisplaySettings.enableGrayscale = value
}
})
case let .unblockHeader(text):
Expand Down Expand Up @@ -743,19 +734,10 @@ private func nicegramSettingsControllerEntries(presentationData: PresentationDat

entries.append(.easyToggle(toggleIndex, .hideStories, l("NicegramSettings.HideStories"), NGSettings.hideStories))
toggleIndex += 1

entries.append(.easyToggle(toggleIndex, .hideBadgeCounters, l("NicegramSettings.HideBadgeCounters"), NGSettings.hideBadgeCounters))
toggleIndex += 1

entries.append(.easyToggle(toggleIndex, .enableAnimationsInChatList, l("NicegramSettings.EnableAnimationsInChatList"), !NGSettings.chatListDisplaySettings.disableAnimations))
toggleIndex += 1

entries.append(.easyToggle(toggleIndex, .enableGrayscaleInChatList, l("NicegramSettings.EnableGrayscaleInChatList"), NGSettings.chatListDisplaySettings.enableGrayscale))
toggleIndex += 1

entries.append(.easyToggle(toggleIndex, .enableGrayscaleInChat, l("NicegramSettings.EnableGrayscaleInChat"), NGSettings.chatDisplaySettings.enableGrayscale))
toggleIndex += 1


if let sharingSettings {
entries.append(
.shareBotsData(
Expand Down
36 changes: 0 additions & 36 deletions Nicegram/NGUtils/Sources/GrayscaleApplier.swift

This file was deleted.

8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,17 @@
"kind" : "remoteSourceControl",
"location" : "[email protected]:mobyrix/nicegram-assistant-ios.git",
"state" : {
"branch" : "develop",
"revision" : "0f8c6a99b60031394f19946fe6887d4e7a12f3b7"
"branch" : "fix/wallet-bugs",
"revision" : "52d1fb8ba76a4d4ddc2a90bbde8c497fe1cf3cac"
}
},
{
"identity" : "nicegram-wallet-ios",
"kind" : "remoteSourceControl",
"location" : "[email protected]:mobyrix/nicegram-wallet-ios.git",
"state" : {
"branch" : "develop",
"revision" : "6417219110dae50a9dd129c61795dc469ceb12d0"
"branch" : "fix/wallet-bugs",
"revision" : "fbc76a10e90e1e5443e64bbac38bfd9aed12a4ba"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PackageDescription
let package = Package(
name: "nicegram-package",
dependencies: [
.package(url: "[email protected]:mobyrix/nicegram-assistant-ios.git", branch: "develop"),
.package(url: "[email protected]:mobyrix/nicegram-wallet-ios.git", branch: "develop")
.package(url: "[email protected]:mobyrix/nicegram-assistant-ios.git", branch: "fix/wallet-bugs"),
.package(url: "[email protected]:mobyrix/nicegram-wallet-ios.git", branch: "fix/wallet-bugs")
]
)
3 changes: 0 additions & 3 deletions Telegram/Telegram-iOS/ar.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@
"Premium.rememberFolderOnExit" = "تذكر المجلد الحالي عند الخروج";
"NicegramSettings.HideStories" = "إخفاء الستوري";
"NicegramSettings.HideBadgeCounters" = "إخفاء عدادات الشارات";
"NicegramSettings.EnableAnimationsInChatList" = "الرسوم المتحركة في قائمة الدردشة";
"NicegramSettings.EnableGrayscaleInChatList" = "الرمادي في قائمة الدردشة";
"NicegramSettings.EnableGrayscaleInChat" = "الرمادي في الدردشة";

/*Registration Date*/
"NiceFeatures.RegDate.OlderThan" = "أقدم من";
Expand Down
3 changes: 0 additions & 3 deletions Telegram/Telegram-iOS/de.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@
"Premium.rememberFolderOnExit" = "Aktuellen Ordner beim Beenden merken";
"NicegramSettings.HideStories" = "Stories verbergen";
"NicegramSettings.HideBadgeCounters" = "Ausblenden der Abzeichenzähler";
"NicegramSettings.EnableAnimationsInChatList" = "Animationen in der Chatliste";
"NicegramSettings.EnableGrayscaleInChatList" = "Graustufen in der Chatliste";
"NicegramSettings.EnableGrayscaleInChat" = "Graustufen im Chat";

/*Registration Date*/
"NiceFeatures.RegDate.OlderThan" = "Älter als";
Expand Down
3 changes: 0 additions & 3 deletions Telegram/Telegram-iOS/en.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@
"Premium.rememberFolderOnExit" = "Remember current folder on exit";
"NicegramSettings.HideStories" = "Hide Stories";
"NicegramSettings.HideBadgeCounters" = "Hide Badge counters";
"NicegramSettings.EnableAnimationsInChatList" = "Animations in chat list";
"NicegramSettings.EnableGrayscaleInChatList" = "Grayscale in chat list";
"NicegramSettings.EnableGrayscaleInChat" = "Grayscale in chat";

/*Registration Date*/
"NiceFeatures.RegDate.OlderThan" = "Older than";
Expand Down
3 changes: 0 additions & 3 deletions Telegram/Telegram-iOS/es.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@
"Premium.rememberFolderOnExit" = "Recordar la carpeta actual a la salida";
"NicegramSettings.HideStories" = "Ocultar Historias";
"NicegramSettings.HideBadgeCounters" = "Ocultar contadores de insignias";
"NicegramSettings.EnableAnimationsInChatList" = "Animaciones en la lista de chat";
"NicegramSettings.EnableGrayscaleInChatList" = "Escala de grises en la lista de chat";
"NicegramSettings.EnableGrayscaleInChat" = "Escala de grises en el chat";

/*Registration Date*/
"NiceFeatures.RegDate.OlderThan" = "Mayor que";
Expand Down
3 changes: 0 additions & 3 deletions Telegram/Telegram-iOS/fr.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@
"Premium.rememberFolderOnExit" = "Mémoriser le dossier actuel en quittant";
"NicegramSettings.HideStories" = "Cacher les histoires";
"NicegramSettings.HideBadgeCounters" = "Masquer les compteurs de badges";
"NicegramSettings.EnableAnimationsInChatList" = "Animations dans la liste de chat";
"NicegramSettings.EnableGrayscaleInChatList" = "Niveaux de gris dans la liste de chat";
"NicegramSettings.EnableGrayscaleInChat" = "Gris dans le chat";

/*Registration Date*/
"NiceFeatures.RegDate.OlderThan" = "Plus vieux que";
Expand Down
3 changes: 0 additions & 3 deletions Telegram/Telegram-iOS/it.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ Il browser selezionato deve essere installato.";
"Premium.rememberFolderOnExit" = "Ricorda la cartella corrente all'uscita";
"NicegramSettings.HideStories" = "Nascondi Storie";
"NicegramSettings.HideBadgeCounters" = "Nascondi i contatori dei badge";
"NicegramSettings.EnableAnimationsInChatList" = "Animazioni nella lista chat";
"NicegramSettings.EnableGrayscaleInChatList" = "Scala di grigi nella lista chat";
"NicegramSettings.EnableGrayscaleInChat" = "In scala di grigi nella chat";

/*Registration Date*/
"NiceFeatures.RegDate.OlderThan" = "Più vecchio di";
Expand Down
3 changes: 0 additions & 3 deletions Telegram/Telegram-iOS/ko.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@
"Premium.rememberFolderOnExit" = "종료시 현재 폴더 기억하기";
"NicegramSettings.HideStories" = "스토리 숨기기";
"NicegramSettings.HideBadgeCounters" = "뱃지 카운터 숨기기";
"NicegramSettings.EnableAnimationsInChatList" = "채팅 목록의 애니메이션";
"NicegramSettings.EnableGrayscaleInChatList" = "채팅 목록의 그레이스케일";
"NicegramSettings.EnableGrayscaleInChat" = "채팅에서의 그레이스케일";

/*Registration Date*/
"NiceFeatures.RegDate.OlderThan" = "이전의";
Expand Down
3 changes: 0 additions & 3 deletions Telegram/Telegram-iOS/pl.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@
"Premium.rememberFolderOnExit" = "Zapamiętaj bieżący folder przy wyjściu";
"NicegramSettings.HideStories" = "Ukryj Historie";
"NicegramSettings.HideBadgeCounters" = "Ukryj liczniki odznak";
"NicegramSettings.EnableAnimationsInChatList" = "Animacje na liście czatów";
"NicegramSettings.EnableGrayscaleInChatList" = "Skala szarości na liście czatów";
"NicegramSettings.EnableGrayscaleInChat" = "Skala szarości w czacie";

/*Registration Date*/
"NiceFeatures.RegDate.OlderThan" = "Starsze niż";
Expand Down
3 changes: 0 additions & 3 deletions Telegram/Telegram-iOS/pt.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@
"Premium.rememberFolderOnExit" = "Lembrar pasta atual antes de sair";
"NicegramSettings.HideStories" = "Ocultar Stories";
"NicegramSettings.HideBadgeCounters" = "Ocultar contadores de distintivos";
"NicegramSettings.EnableAnimationsInChatList" = "Animações na lista de chat";
"NicegramSettings.EnableGrayscaleInChatList" = "Escala de cinza na lista de chat";
"NicegramSettings.EnableGrayscaleInChat" = "Escala de cinza no chat";

/*Registration Date*/
"NiceFeatures.RegDate.OlderThan" = "Mais antigo que";
Expand Down
3 changes: 0 additions & 3 deletions Telegram/Telegram-iOS/ro.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@
"Premium.rememberFolderOnExit" = "Ține minte folderul curent la ieșire";
"NicegramSettings.HideStories" = "Ascunde Poveștile";
"NicegramSettings.HideBadgeCounters" = "Ascunde contoarele de insigne";
"NicegramSettings.EnableAnimationsInChatList" = "Animații în lista de chat";
"NicegramSettings.EnableGrayscaleInChatList" = "Scala de gri în lista de chat";
"NicegramSettings.EnableGrayscaleInChat" = "Gri în chat";

/*Registration Date*/
"NiceFeatures.RegDate.OlderThan" = "Mai vechi de";
Expand Down
3 changes: 0 additions & 3 deletions Telegram/Telegram-iOS/ru.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@
"Premium.rememberFolderOnExit" = "Запомнить текущую папку при выходе";
"NicegramSettings.HideStories" = "Скрыть истории";
"NicegramSettings.HideBadgeCounters" = "Скрыть счетчики значков";
"NicegramSettings.EnableAnimationsInChatList" = "Анимации в списке чата";
"NicegramSettings.EnableGrayscaleInChatList" = "Оттенки серого в списке чата";
"NicegramSettings.EnableGrayscaleInChat" = "Оттенки серого в чате";

/*Registration Date*/
"NiceFeatures.RegDate.OlderThan" = "Старше, чем";
Expand Down
3 changes: 0 additions & 3 deletions Telegram/Telegram-iOS/tr.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@
"Premium.rememberFolderOnExit" = "Çıkışta şu anki klasörü hatırla";
"NicegramSettings.HideStories" = "Hikayeleri Gizle";
"NicegramSettings.HideBadgeCounters" = "Rozet sayacını gizle";
"NicegramSettings.EnableAnimationsInChatList" = "Sohbet listesinde animasyonlar";
"NicegramSettings.EnableGrayscaleInChatList" = "Sohbet listesinde gri tonlama";
"NicegramSettings.EnableGrayscaleInChat" = "Sohbette gri tonlama";

/*Registration Date*/
"NiceFeatures.RegDate.OlderThan" = "Şundan daha eski:";
Expand Down
3 changes: 0 additions & 3 deletions Telegram/Telegram-iOS/uz.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@
"Premium.rememberFolderOnExit" = "dan Kattaroq";
"NicegramSettings.HideStories" = "Hikoyalarni yashirish";
"NicegramSettings.HideBadgeCounters" = "Belgilar sonini yashirish";
"NicegramSettings.EnableAnimationsInChatList" = "Суҳбат рўйхатидаги анимациялар";
"NicegramSettings.EnableGrayscaleInChatList" = "Чат рўйхатидаги кулранглар";
"NicegramSettings.EnableGrayscaleInChat" = "Чатда кулранглар";

/*Registration Date*/
"NiceFeatures.RegDate.OlderThan" = "dan kattaroq";
Expand Down
3 changes: 0 additions & 3 deletions Telegram/Telegram-iOS/zh-hans.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@
"Premium.rememberFolderOnExit" = "退出时记住当前分组";
"NicegramSettings.HideStories" = "隐藏故事";
"NicegramSettings.HideBadgeCounters" = "隐藏徽章计数器";
"NicegramSettings.EnableAnimationsInChatList" = "聊天列表中的动画";
"NicegramSettings.EnableGrayscaleInChatList" = "聊天列表中的灰度";
"NicegramSettings.EnableGrayscaleInChat" = "灰度在聊天中";

/*Registration Date*/
"NiceFeatures.RegDate.OlderThan" = "早于";
Expand Down
3 changes: 0 additions & 3 deletions Telegram/Telegram-iOS/zh-hant.lproj/NiceLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@
"Premium.rememberFolderOnExit" = "記下應用程式關閉時所在的資料夾";
"NicegramSettings.HideStories" = "隱藏故事";
"NicegramSettings.HideBadgeCounters" = "隱藏徽章計數器";
"NicegramSettings.EnableAnimationsInChatList" = "聊天列表中的動畫";
"NicegramSettings.EnableGrayscaleInChatList" = "聊天列表中的灰階";
"NicegramSettings.EnableGrayscaleInChat" = "灰階在聊天中";

/*Registration Date*/
"NiceFeatures.RegDate.OlderThan" = "早於";
Expand Down
18 changes: 0 additions & 18 deletions submodules/ChatListUI/Sources/ChatListControllerNode.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// MARK: Nicegram HideStories
import NGData
//
// MARK: Nicegram ColorAlign
import NGUtils
//
import Foundation
import UIKit
import AsyncDisplayKit
Expand Down Expand Up @@ -1059,10 +1056,6 @@ final class ChatListControllerNode: ASDisplayNode, ASGestureRecognizerDelegate {
}
}

// MARK: Nicegram ColorAlign
private let grayscaleApplier = GrayscaleApplier()
//

private(set) var inlineStackContainerTransitionFraction: CGFloat = 0.0
private(set) var inlineStackContainerNode: ChatListContainerNode?
private var inlineContentPanRecognizer: InteractiveTransitionGestureRecognizer?
Expand Down Expand Up @@ -1665,17 +1658,6 @@ final class ChatListControllerNode: ASDisplayNode, ASGestureRecognizerDelegate {
navigationBarComponentView.deferScrollApplication = false
navigationBarComponentView.applyCurrentScroll(transition: ComponentTransition(transition))
}

// MARK: Nicegram ColorAlign
self.grayscaleApplier.onLayoutUpdated(
apply: NGSettings.chatListDisplaySettings.enableGrayscale,
frame: CGRect(
origin: .zero,
size: layout.size
),
superlayer: self.layer
)
//
}

func activateSearch(placeholderNode: SearchBarPlaceholderNode, displaySearchFilters: Bool, hasDownloads: Bool, initialFilter: ChatListSearchFilter, navigationController: NavigationController?) -> (ASDisplayNode, (Bool) -> Void)? {
Expand Down
Loading

0 comments on commit a91ebb9

Please sign in to comment.