Fixed isolated emoji under spoilers.
This commit is contained in:
parent
e961883914
commit
8b0ff16b66
1 changed files with 2 additions and 1 deletions
|
|
@ -3696,7 +3696,8 @@ IsolatedEmoji String::toIsolatedEmoji() const {
|
||||||
auto result = IsolatedEmoji();
|
auto result = IsolatedEmoji();
|
||||||
const auto skip = (_blocks.empty()
|
const auto skip = (_blocks.empty()
|
||||||
|| _blocks.back()->type() != TextBlockTSkip) ? 0 : 1;
|
|| _blocks.back()->type() != TextBlockTSkip) ? 0 : 1;
|
||||||
if (_blocks.size() > kIsolatedEmojiLimit + skip) {
|
if ((_blocks.size() > kIsolatedEmojiLimit + skip)
|
||||||
|
|| !_spoilers.empty()) {
|
||||||
return IsolatedEmoji();
|
return IsolatedEmoji();
|
||||||
}
|
}
|
||||||
auto index = 0;
|
auto index = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue