mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +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.EmptyStateMessagingRestrictedToPremium.Text" = "Subscribe to **Premium**\nto message **%@**.";
|
||||
"Chat.EmptyStateMessagingRestrictedToPremium.Action" = "Add Premium";
|
||||
"Chat.EmptyStateMessagingRestrictedToPremium.Action" = "Get Premium";
|
||||
|
||||
"Chat.ContextMenuReadDate.ReadAvailablePrefix" = "read";
|
||||
"Chat.ContextMenuReadDate.ReadAvailableBadge" = "show when";
|
||||
|
@ -518,7 +518,7 @@ public func channelMembersController(context: AccountContext, updatedPresentatio
|
||||
)
|
||||
|> deliverOnMainQueue).start(next: { chatPeer, exportedInvitation, members in
|
||||
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((
|
||||
contactsController.result
|
||||
|
@ -2266,7 +2266,7 @@ public func channelVisibilityController(context: AccountContext, updatedPresenta
|
||||
nextImpl = { [weak controller] in
|
||||
if let controller = controller {
|
||||
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)
|
||||
let _ = (selectionController.result
|
||||
|> deliverOnMainQueue).start(next: { [weak selectionController] result in
|
||||
|
@ -2959,7 +2959,7 @@ public class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
|
||||
let context = UIGraphicsGetCurrentContext()!
|
||||
|
||||
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()
|
||||
UIGraphicsEndImageContext()
|
||||
|
@ -2065,7 +2065,7 @@ public class ChatMessageStickerItemNode: ChatMessageItemView {
|
||||
let context = UIGraphicsGetCurrentContext()!
|
||||
|
||||
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()
|
||||
UIGraphicsEndImageContext()
|
||||
|
@ -11743,7 +11743,7 @@ public func presentAddMembersImpl(context: AccountContext, updatedPresentationDa
|
||||
}))
|
||||
contactsController.navigationPresentation = .modal
|
||||
} 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
|
||||
//}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user