mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-04 11:00:46 +00:00
Show star rating preview.
This commit is contained in:
@@ -5185,6 +5185,16 @@ int Session::commonStarsPerMessage(
|
||||
return (i != end(_commonStarsPerMessage)) ? i->second : 0;
|
||||
}
|
||||
|
||||
void Session::setPendingStarsRating(StarsRatingPending value) {
|
||||
_pendingStarsRating = value
|
||||
? std::make_unique<StarsRatingPending>(value)
|
||||
: nullptr;
|
||||
}
|
||||
|
||||
StarsRatingPending Session::pendingStarsRating() const {
|
||||
return _pendingStarsRating ? *_pendingStarsRating : StarsRatingPending();
|
||||
}
|
||||
|
||||
void Session::clearLocalStorage() {
|
||||
_cache->close();
|
||||
_cache->clear();
|
||||
|
||||
Reference in New Issue
Block a user