mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-11 11:13:29 +00:00
Various improvements
This commit is contained in:
parent
bafcb57627
commit
e71bf3beb6
@ -10937,7 +10937,7 @@ Sorry for the inconvenience.";
|
|||||||
"Chat.ReactionContextMenu.RemoveTag" = "Remove Tag";
|
"Chat.ReactionContextMenu.RemoveTag" = "Remove Tag";
|
||||||
|
|
||||||
"Chat.EmptyStateMessagingRestrictedToPremium.Text" = "Subscribe to **Premium**\nto message **%@**.";
|
"Chat.EmptyStateMessagingRestrictedToPremium.Text" = "Subscribe to **Premium**\nto message **%@**.";
|
||||||
"Chat.EmptyStateMessagingRestrictedToPremium.Action" = "Add Premium";
|
"Chat.EmptyStateMessagingRestrictedToPremium.Action" = "Get Premium";
|
||||||
|
|
||||||
"Chat.ContextMenuReadDate.ReadAvailablePrefix" = "read";
|
"Chat.ContextMenuReadDate.ReadAvailablePrefix" = "read";
|
||||||
"Chat.ContextMenuReadDate.ReadAvailableBadge" = "show when";
|
"Chat.ContextMenuReadDate.ReadAvailableBadge" = "show when";
|
||||||
|
|||||||
@ -518,7 +518,7 @@ public func channelMembersController(context: AccountContext, updatedPresentatio
|
|||||||
)
|
)
|
||||||
|> deliverOnMainQueue).start(next: { chatPeer, exportedInvitation, members in
|
|> deliverOnMainQueue).start(next: { chatPeer, exportedInvitation, members in
|
||||||
let disabledIds = members?.compactMap({$0.peer.id}) ?? []
|
let disabledIds = members?.compactMap({$0.peer.id}) ?? []
|
||||||
let contactsController = context.sharedContext.makeContactMultiselectionController(ContactMultiselectionControllerParams(context: context, updatedPresentationData: updatedPresentationData, mode: .peerSelection(searchChatList: false, searchGroups: false, searchChannels: false), options: [], filters: [.excludeSelf, .disable(disabledIds)]))
|
let contactsController = context.sharedContext.makeContactMultiselectionController(ContactMultiselectionControllerParams(context: context, updatedPresentationData: updatedPresentationData, mode: .peerSelection(searchChatList: false, searchGroups: false, searchChannels: false), options: [], filters: [.excludeSelf, .disable(disabledIds)], onlyWriteable: true))
|
||||||
|
|
||||||
addMembersDisposable.set((
|
addMembersDisposable.set((
|
||||||
contactsController.result
|
contactsController.result
|
||||||
|
|||||||
@ -2266,7 +2266,7 @@ public func channelVisibilityController(context: AccountContext, updatedPresenta
|
|||||||
nextImpl = { [weak controller] in
|
nextImpl = { [weak controller] in
|
||||||
if let controller = controller {
|
if let controller = controller {
|
||||||
if case .initialSetup = mode {
|
if case .initialSetup = mode {
|
||||||
let selectionController = context.sharedContext.makeContactMultiselectionController(ContactMultiselectionControllerParams(context: context, updatedPresentationData: updatedPresentationData, mode: .channelCreation, options: []))
|
let selectionController = context.sharedContext.makeContactMultiselectionController(ContactMultiselectionControllerParams(context: context, updatedPresentationData: updatedPresentationData, mode: .channelCreation, options: [], onlyWriteable: true))
|
||||||
(controller.navigationController as? NavigationController)?.replaceAllButRootController(selectionController, animated: true)
|
(controller.navigationController as? NavigationController)?.replaceAllButRootController(selectionController, animated: true)
|
||||||
let _ = (selectionController.result
|
let _ = (selectionController.result
|
||||||
|> deliverOnMainQueue).start(next: { [weak selectionController] result in
|
|> deliverOnMainQueue).start(next: { [weak selectionController] result in
|
||||||
|
|||||||
@ -2959,7 +2959,7 @@ public class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
|
|||||||
let context = UIGraphicsGetCurrentContext()!
|
let context = UIGraphicsGetCurrentContext()!
|
||||||
|
|
||||||
context.translateBy(x: -self.imageNode.frame.minX, y: -self.imageNode.frame.minY)
|
context.translateBy(x: -self.imageNode.frame.minX, y: -self.imageNode.frame.minY)
|
||||||
self.view.layer.render(in: context)
|
self.contextSourceNode.contentNode.view.layer.render(in: context)
|
||||||
|
|
||||||
let image = UIGraphicsGetImageFromCurrentImageContext()
|
let image = UIGraphicsGetImageFromCurrentImageContext()
|
||||||
UIGraphicsEndImageContext()
|
UIGraphicsEndImageContext()
|
||||||
|
|||||||
@ -2065,7 +2065,7 @@ public class ChatMessageStickerItemNode: ChatMessageItemView {
|
|||||||
let context = UIGraphicsGetCurrentContext()!
|
let context = UIGraphicsGetCurrentContext()!
|
||||||
|
|
||||||
context.translateBy(x: -self.imageNode.frame.minX, y: -self.imageNode.frame.minY)
|
context.translateBy(x: -self.imageNode.frame.minX, y: -self.imageNode.frame.minY)
|
||||||
self.view.layer.render(in: context)
|
self.contextSourceNode.contentNode.view.layer.render(in: context)
|
||||||
|
|
||||||
let image = UIGraphicsGetImageFromCurrentImageContext()
|
let image = UIGraphicsGetImageFromCurrentImageContext()
|
||||||
UIGraphicsEndImageContext()
|
UIGraphicsEndImageContext()
|
||||||
|
|||||||
@ -11743,7 +11743,7 @@ public func presentAddMembersImpl(context: AccountContext, updatedPresentationDa
|
|||||||
}))
|
}))
|
||||||
contactsController.navigationPresentation = .modal
|
contactsController.navigationPresentation = .modal
|
||||||
} else {*/
|
} else {*/
|
||||||
contactsController = context.sharedContext.makeContactMultiselectionController(ContactMultiselectionControllerParams(context: context, updatedPresentationData: updatedPresentationData, mode: .peerSelection(searchChatList: false, searchGroups: false, searchChannels: false), options: options, filters: [.excludeSelf, .disable(recentIds)]))
|
contactsController = context.sharedContext.makeContactMultiselectionController(ContactMultiselectionControllerParams(context: context, updatedPresentationData: updatedPresentationData, mode: .peerSelection(searchChatList: false, searchGroups: false, searchChannels: false), options: options, filters: [.excludeSelf, .disable(recentIds)], onlyWriteable: true))
|
||||||
contactsController.navigationPresentation = .modal
|
contactsController.navigationPresentation = .modal
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user