Skip to content

Commit

Permalink
1.7.7 (301)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis15yo committed Aug 23, 2024
1 parent 7cafcb0 commit 74c0507
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 52 deletions.
14 changes: 7 additions & 7 deletions MODULE.bazel.lock

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

43 changes: 0 additions & 43 deletions submodules/ChatListUI/Sources/ChatListController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6726,9 +6726,6 @@ private final class ChatListLocationContext {
switch networkState {
case .waitingForNetwork:
titleContent = NetworkStatusTitle(text: presentationData.strings.State_WaitingForNetwork, activity: true, hasProxy: false, connectsViaProxy: connectsViaProxy, isPasscodeSet: false, isManuallyLocked: false, peerStatus: peerStatus)
// MARK: Nicegram waiting network bug
self.addAndDeleteSavedMessage(with: networkState)
//
case let .connecting(proxy):
let text = presentationData.strings.State_Connecting
let _ = proxy
Expand Down Expand Up @@ -6824,9 +6821,6 @@ private final class ChatListLocationContext {
switch networkState {
case .waitingForNetwork:
titleContent = NetworkStatusTitle(text: presentationData.strings.State_WaitingForNetwork, activity: true, hasProxy: false, connectsViaProxy: connectsViaProxy, isPasscodeSet: isRoot && isPasscodeSet, isManuallyLocked: isRoot && isManuallyLocked, peerStatus: peerStatus)
// MARK: Nicegram waiting network bug
self.addAndDeleteSavedMessage(with: networkState)
//
case let .connecting(proxy):
let text = presentationData.strings.State_Connecting
/*if let layout = strongSelf.validLayout, proxy != nil && layout.metrics.widthClass != .regular && layout.size.width > 320.0 {*/
Expand Down Expand Up @@ -7017,41 +7011,4 @@ private final class ChatListLocationContext {
break
}
}

// MARK: Nicegram waiting network bug
private func addAndDeleteSavedMessage(with networkState: AccountNetworkState) {
let peerId = self.context.account.peerId
let messageId = MessageId(peerId: peerId, namespace: 0, id: 666666)

let message = StoreMessage(
id: messageId,
globallyUniqueId: nil,
groupingKey: nil,
threadId: nil,
timestamp: 1,
flags: .init(),
tags: .init(),
globalTags: .init(),
localTags: .init(),
forwardInfo: nil,
authorId: .init(namespace: peerId.namespace, id: peerId.id),
text: ":)",
attributes: [],
media: []
)

_ = (self.context.account.postbox.transaction { transaction in
transaction.addMessages([message], location: .Random)
}).start(next: { [weak self] _ in
guard let self else { return }

_ = (self.context.account.postbox.transaction { transaction in
transaction.deleteMessages(
[messageId],
forEachMedia: nil
)
}).start()
})
}
//
}
2 changes: 1 addition & 1 deletion submodules/TelegramUI/Sources/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ private class UserInterfaceStyleObserverWindow: UIWindow {
env: {
.init(
appUrlScheme: buildConfig.appSpecificUrlScheme,
enableLogging: false,
enableLogging: true,
keychainGroupIdentifier: NGENV.wallet.keychainGroupIdentifier,
nicegramApiBaseUrl: URL(string: NGENV.ng_api_url)!
.appendingPathComponent("v7/"),
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"app": "1.7.6",
"app": "1.7.7",
"xcode": "15.2",
"bazel": "7.1.1",
"macos": "13.0"
Expand Down

0 comments on commit 74c0507

Please sign in to comment.