mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
[WIP] Quotes and link previews
This commit is contained in:
@@ -11,6 +11,7 @@ swift_library(
|
||||
],
|
||||
deps = [
|
||||
"//submodules/AsyncDisplayKit",
|
||||
"//submodules/SSignalKit/SwiftSignalKit",
|
||||
"//submodules/Display",
|
||||
"//submodules/Postbox",
|
||||
"//submodules/TelegramCore",
|
||||
|
||||
@@ -11,6 +11,7 @@ import ChatMessageBackground
|
||||
import ChatControllerInteraction
|
||||
import ChatHistoryEntry
|
||||
import ChatMessageItemCommon
|
||||
import SwiftSignalKit
|
||||
|
||||
public enum ChatMessageBubbleContentBackgroundHiding {
|
||||
case never
|
||||
@@ -73,7 +74,10 @@ public enum ChatMessageBubbleMergeStatus {
|
||||
public enum ChatMessageBubbleRelativePosition {
|
||||
public enum NeighbourType {
|
||||
case media
|
||||
case freeform
|
||||
case header
|
||||
case footer
|
||||
case text
|
||||
case reactions
|
||||
}
|
||||
|
||||
public enum NeighbourSpacing {
|
||||
@@ -119,7 +123,7 @@ public enum ChatMessageBubblePreparePosition {
|
||||
|
||||
public enum ChatMessageBubbleContentTapAction {
|
||||
case none
|
||||
case url(url: String, concealed: Bool)
|
||||
case url(url: String, concealed: Bool, activate: (() -> Promise<Bool>?)?)
|
||||
case textMention(String)
|
||||
case peerMention(peerId: PeerId, mention: String, openProfile: Bool)
|
||||
case botCommand(String)
|
||||
|
||||
Reference in New Issue
Block a user