2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-03 08:05:12 +00:00

Allow reporting / banning from reactions in groups.

This commit is contained in:
John Preston
2024-02-01 17:29:53 +04:00
parent c06699e8e7
commit 5401d00548
12 changed files with 241 additions and 44 deletions

View File

@@ -331,7 +331,7 @@ void FieldAutocomplete::showFiltered(
plainQuery = base::StringViewMid(query, 1);
break;
}
bool resetScroll = (_type != type || _filter != plainQuery);
const auto resetScroll = (_type != type || _filter != plainQuery);
if (resetScroll) {
_type = type;
_filter = TextUtilities::RemoveAccents(plainQuery.toString());
@@ -342,10 +342,11 @@ void FieldAutocomplete::showFiltered(
}
void FieldAutocomplete::showStickers(EmojiPtr emoji) {
bool resetScroll = (_emoji != emoji);
_emoji = emoji;
_type = Type::Stickers;
if (!emoji) {
const auto resetScroll = (_emoji != emoji);
if (resetScroll || emoji) {
_emoji = emoji;
_type = Type::Stickers;
} else if (!emoji) {
rowsUpdated(
base::take(_mrows),
base::take(_hrows),