mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Initial invite requests implementation
This commit is contained in:
@@ -128,7 +128,7 @@ public class ChatTitleActivityContentNode: ASDisplayNode {
|
||||
if case .center = alignment {
|
||||
self.textNode.position = CGPoint(x: 0.0, y: size.height / 2.0 + offset)
|
||||
} else {
|
||||
self.textNode.position = CGPoint(x: size.width / 2.0, y: size.height / 2.0 + offset)
|
||||
self.textNode.position = CGPoint(x: size.width / 2.0 + 3.0, y: size.height / 2.0 + offset)
|
||||
}
|
||||
return size
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ public enum ChatTitleActivityNodeState: Equatable {
|
||||
case recordingVideo(NSAttributedString, UIColor)
|
||||
case playingGame(NSAttributedString, UIColor)
|
||||
case choosingSticker(NSAttributedString, UIColor)
|
||||
case interactingWithEmoji(NSAttributedString, UIColor)
|
||||
|
||||
func contentNode() -> ChatTitleActivityContentNode? {
|
||||
switch self {
|
||||
@@ -43,6 +44,8 @@ public enum ChatTitleActivityNodeState: Equatable {
|
||||
return ChatPlayingActivityContentNode(text: text, color: color)
|
||||
case let .choosingSticker(text, color):
|
||||
return ChatChoosingStickerActivityContentNode(text: text, color: color)
|
||||
case let .interactingWithEmoji(text, _):
|
||||
return ChatTitleActivityContentNode(text: text)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user