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:
Ilya Laktyushin
2018-12-28 21:23:00 +04:00
parent b1214087ba
commit e8a63d4fc8
65 changed files with 3208 additions and 2699 deletions

View File

@@ -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 {