Fix crash in emoji color picker.

This commit is contained in:
John Preston 2025-02-05 13:50:27 +04:00
parent 8912d4d55a
commit 7f6e871b26

View file

@ -628,6 +628,13 @@ void EmojiListWidget::applyNextSearchQuery() {
const auto modeChanged = (_searchMode != searching);
clearSelection();
if (modeChanged) {
if (_picker) {
_picker->hideAnimated();
}
_colorAllRipple = nullptr;
for (auto &set : _custom) {
set.ripple = nullptr;
}
_searchMode = searching;
}
if (!searching) {