mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 15:04:57 +00:00
Improve negative rating display.
This commit is contained in:
@@ -525,7 +525,11 @@ rpl::producer<Data::StarsRating> StarsRatingValue(
|
||||
user,
|
||||
Data::PeerUpdate::Flag::StarsRating
|
||||
) | rpl::map([=] {
|
||||
return user->starsRating();
|
||||
auto result = user->starsRating();
|
||||
if (!user->isSelf() && result.level < 0) {
|
||||
result.stars = 0;
|
||||
}
|
||||
return result;
|
||||
});
|
||||
}
|
||||
return rpl::single(Data::StarsRating());
|
||||
|
||||
Reference in New Issue
Block a user