mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 01:10:09 +00:00
Various Fixes
This commit is contained in:
parent
dacdd9e1ae
commit
6fedfb2e8b
@ -101,7 +101,7 @@ class ChatChoosingStickerActivityContentNode: ChatTitleActivityContentNode {
|
||||
self.indicatorNode = ChatChoosingStickerActivityIndicatorNode(color: color)
|
||||
|
||||
var text = text
|
||||
self.advanced = text.string == "choosing sticker"
|
||||
self.advanced = text.string == "choosing a sticker"
|
||||
if self.advanced {
|
||||
let mutable = text.mutableCopy() as? NSMutableAttributedString
|
||||
mutable?.replaceCharacters(in: NSMakeRange(2, 2), with: " ")
|
||||
|
||||
@ -136,7 +136,7 @@ public extension String {
|
||||
continue
|
||||
}
|
||||
string.unicodeScalars.append(scalar)
|
||||
if scalar.value == 0x2764, self.unicodeScalars.count > 1, self.emojis.count == 1 {
|
||||
if scalar.value == 0x2764 && self.unicodeScalars.count < 3 {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user