mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Low disk space alert
Contacts sort selector Bot button icons tg://msg scheme support Calculate service message color using current wallpaper Various fixes
This commit is contained in:
@@ -886,7 +886,7 @@ public final class ChatController: TelegramController, KeyShortcutResponder, Gal
|
||||
}
|
||||
}))
|
||||
}
|
||||
actionSheet.setItemGroups([ActionSheetItemGroup(items: items), ActionSheetItemGroup(items: [
|
||||
actionSheet.setItemGroups([ActionSheetItemGroup(items: items), ActionSheetItemGroup(items: [
|
||||
ActionSheetButtonItem(title: strongSelf.presentationData.strings.Common_Cancel, color: .accent, action: { [weak actionSheet] in
|
||||
actionSheet?.dismissAnimated()
|
||||
})
|
||||
@@ -2476,6 +2476,11 @@ public final class ChatController: TelegramController, KeyShortcutResponder, Gal
|
||||
guard let strongSelf = self, strongSelf.beginMediaRecordingRequestId == requestId else {
|
||||
return
|
||||
}
|
||||
guard checkAvailableDiskSpace(account: strongSelf.account, present: { [weak self] c, a in
|
||||
self?.present(c, in: .window(.root), with: a)
|
||||
}) else {
|
||||
return
|
||||
}
|
||||
let hasOngoingCall: Signal<Bool, NoError>
|
||||
if let signal = strongSelf.account.telegramApplicationContext.hasOngoingCall {
|
||||
hasOngoingCall = signal
|
||||
@@ -4886,7 +4891,7 @@ public final class ChatController: TelegramController, KeyShortcutResponder, Gal
|
||||
}
|
||||
}
|
||||
self.chatDisplayNode.dismissInput()
|
||||
self.present(controller, in: .window(.root))
|
||||
self.present(controller, in: .window(.root), blockInteraction: true)
|
||||
}
|
||||
|
||||
private func openPeer(peerId: PeerId?, navigation: ChatControllerInteractionNavigateToPeer, fromMessage: Message?) {
|
||||
@@ -5453,7 +5458,7 @@ public final class ChatController: TelegramController, KeyShortcutResponder, Gal
|
||||
|
||||
switch strongSelf.peekActions {
|
||||
case .standard:
|
||||
if let peer = data.peer {
|
||||
if let peer = data.peer, peer.id != strongSelf.account.peerId {
|
||||
if let _ = data.peer as? TelegramUser {
|
||||
items.append(UIPreviewAction(title: "👍", style: .default, handler: { _, _ in
|
||||
if let strongSelf = self {
|
||||
|
||||
Reference in New Issue
Block a user