[WIP] Custom channel reactions

This commit is contained in:
Ali
2023-11-04 00:37:02 +04:00
parent bc3bdcd623
commit 8051e43e4c
12 changed files with 1596 additions and 13 deletions

View File

@@ -276,6 +276,7 @@ final class EntityKeyboardIconTopPanelComponent: Component {
case recent
case saved
case premium
case liked
}
let icon: Icon
@@ -360,6 +361,8 @@ final class EntityKeyboardIconTopPanelComponent: Component {
image = UIImage(bundleImageName: "Chat/Input/Media/PanelRecentIcon")
case .saved:
image = UIImage(bundleImageName: "Chat/Input/Media/PanelSavedIcon")
case .liked:
image = UIImage(bundleImageName: "Chat/Input/Media/PanelTrendingIcon")
case .premium:
image = generateImage(CGSize(width: 44.0, height: 44.0), contextGenerator: { size, context in
context.clear(CGRect(origin: CGPoint(), size: size))
@@ -2078,7 +2081,7 @@ public final class EntityKeyboardTopPanelComponent: Component {
}
let isRound: Bool
if let string = activeContentItemId.base as? String, (string == "featuredTop" || string == "recent" || string == "static" || string == "trending") {
if let string = activeContentItemId.base as? String, (string == "featuredTop" || string == "recent" || string == "static" || string == "trending" || string == "liked") {
isRound = true
} else {
isRound = false