Various Fixes

This commit is contained in:
Ilya Laktyushin 2021-08-31 21:00:42 +03:00
parent dacdd9e1ae
commit 6fedfb2e8b
2 changed files with 2 additions and 2 deletions

View File

@ -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: " ")

View File

@ -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
}
}