2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Show premium emoji toast / send to Saved Messages.

This commit is contained in:
John Preston
2022-08-02 20:59:11 +03:00
parent 59903b0b1c
commit f4b80d8714
16 changed files with 133 additions and 23 deletions

View File

@@ -111,7 +111,9 @@ auto SuggestionsWidget::appendCustom(std::vector<Row> rows)
auto SuggestionsWidget::lookupCustom(const std::vector<Row> &rows) const
-> base::flat_multi_map<int, Custom> {
if (rows.empty() || !_suggestCustomEmoji) {
if (rows.empty()
|| !_suggestCustomEmoji
|| !Core::App().settings().suggestAnimatedEmoji()) {
return {};
}
auto custom = base::flat_multi_map<int, Custom>();