mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Always show reaction emoji in reactions view box.
This commit is contained in:
parent
bb3c91aa44
commit
9eba8ccc73
1 changed files with 3 additions and 3 deletions
|
@ -61,7 +61,7 @@ private:
|
||||||
using AllEntry = std::pair<not_null<UserData*>, QString>;
|
using AllEntry = std::pair<not_null<UserData*>, QString>;
|
||||||
|
|
||||||
void loadMore(const QString &offset);
|
void loadMore(const QString &offset);
|
||||||
bool appendRow(not_null<UserData*> user, QString reaction = QString());
|
bool appendRow(not_null<UserData*> user, QString reaction);
|
||||||
std::unique_ptr<PeerListRow> createRow(
|
std::unique_ptr<PeerListRow> createRow(
|
||||||
not_null<UserData*> user,
|
not_null<UserData*> user,
|
||||||
QString reaction) const;
|
QString reaction) const;
|
||||||
|
@ -175,7 +175,7 @@ void Controller::showReaction(const QString &reaction) {
|
||||||
&AllEntry::first
|
&AllEntry::first
|
||||||
) | ranges::to_vector;
|
) | ranges::to_vector;
|
||||||
for (const auto user : _filtered) {
|
for (const auto user : _filtered) {
|
||||||
appendRow(user);
|
appendRow(user, _shownReaction);
|
||||||
}
|
}
|
||||||
loadMore(QString());
|
loadMore(QString());
|
||||||
}
|
}
|
||||||
|
@ -221,7 +221,7 @@ void Controller::loadMore(const QString &offset) {
|
||||||
reaction.match([&](const MTPDmessageUserReaction &data) {
|
reaction.match([&](const MTPDmessageUserReaction &data) {
|
||||||
const auto user = sessionData->userLoaded(
|
const auto user = sessionData->userLoaded(
|
||||||
data.vuser_id().v);
|
data.vuser_id().v);
|
||||||
const auto reaction = filtered ? QString() : qs(data.vreaction());
|
const auto reaction = qs(data.vreaction());
|
||||||
if (user && appendRow(user, reaction)) {
|
if (user && appendRow(user, reaction)) {
|
||||||
if (filtered) {
|
if (filtered) {
|
||||||
_filtered.emplace_back(user);
|
_filtered.emplace_back(user);
|
||||||
|
|
Loading…
Add table
Reference in a new issue