mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various improvements
This commit is contained in:
parent
183db2a8e4
commit
484c350538
11 changed files with 60 additions and 19 deletions
|
|
@ -62,6 +62,13 @@ public enum ChatTranslationDisplayType {
|
|||
}
|
||||
|
||||
public final class ChatPanelInterfaceInteraction {
|
||||
public enum OpenSuggestPostMode {
|
||||
case `default`
|
||||
case editMessage
|
||||
case editTime
|
||||
case editPrice
|
||||
}
|
||||
|
||||
public let setupReplyMessage: (MessageId?, @escaping (ContainedViewLayoutTransition, @escaping () -> Void) -> Void) -> Void
|
||||
public let setupEditMessage: (MessageId?, @escaping (ContainedViewLayoutTransition) -> Void) -> Void
|
||||
public let beginMessageSelection: ([MessageId], @escaping (ContainedViewLayoutTransition) -> Void) -> Void
|
||||
|
|
@ -168,7 +175,7 @@ public final class ChatPanelInterfaceInteraction {
|
|||
public let addDoNotTranslateLanguage: (String) -> Void
|
||||
public let hideTranslationPanel: () -> Void
|
||||
public let openPremiumGift: () -> Void
|
||||
public let openSuggestPost: (Message?) -> Void
|
||||
public let openSuggestPost: (Message?, OpenSuggestPostMode) -> Void
|
||||
public let openPremiumRequiredForMessaging: () -> Void
|
||||
public let openStarsPurchase: (Int64?) -> Void
|
||||
public let openMessagePayment: () -> Void
|
||||
|
|
@ -291,7 +298,7 @@ public final class ChatPanelInterfaceInteraction {
|
|||
addDoNotTranslateLanguage: @escaping (String) -> Void,
|
||||
hideTranslationPanel: @escaping () -> Void,
|
||||
openPremiumGift: @escaping () -> Void,
|
||||
openSuggestPost: @escaping (Message?) -> Void,
|
||||
openSuggestPost: @escaping (Message?, OpenSuggestPostMode) -> Void,
|
||||
openPremiumRequiredForMessaging: @escaping () -> Void,
|
||||
openStarsPurchase: @escaping (Int64?) -> Void,
|
||||
openMessagePayment: @escaping () -> Void,
|
||||
|
|
@ -544,7 +551,7 @@ public final class ChatPanelInterfaceInteraction {
|
|||
}, addDoNotTranslateLanguage: { _ in
|
||||
}, hideTranslationPanel: {
|
||||
}, openPremiumGift: {
|
||||
}, openSuggestPost: { _ in
|
||||
}, openSuggestPost: { _, _ in
|
||||
}, openPremiumRequiredForMessaging: {
|
||||
}, openStarsPurchase: { _ in
|
||||
}, openMessagePayment: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue