Don't insert object character without _customEmojiObject.
This commit is contained in:
parent
6bd7518109
commit
0b829240fd
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue