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:
@@ -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),
|
||||
|
Reference in New Issue
Block a user