Don't insert object character without _customEmojiObject.

This commit is contained in:
John Preston 2022-07-01 17:01:11 +04:00
parent 6bd7518109
commit 0b829240fd

View file

@ -2259,7 +2259,8 @@ void InputField::processFormatting(int insertPosition, int insertEnd) {
auto *textStart = fragmentText.constData();
auto *textEnd = textStart + fragmentText.size();
if (format.objectType() == kCustomEmojiFormat) {
if (_customEmojiObject
&& format.objectType() == kCustomEmojiFormat) {
if (fragmentText == kObjectReplacement) {
checkedTill = fragmentEnd;
continue;