2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fixed updating of emoji status from TopBar in Premium Settings for user.

Regression was introduced in 47b32898f5.
This commit is contained in:
23rd
2022-09-27 22:10:40 +03:00
parent 62b624c390
commit 9c3173e4bb
2 changed files with 3 additions and 3 deletions

View File

@@ -580,7 +580,7 @@ void EmojiStatusTopBar::paint(QPainter &p) {
crl::now(),
_paused);
p.drawImage(_rect, frame.image);
p.drawImage(_rect.toRect(), frame.image);
if (!_paused) {
_player->markFrameShown();
}
@@ -675,7 +675,7 @@ TopBarUser::TopBarUser(
if (document) {
_emojiStatus = std::make_unique<EmojiStatusTopBar>(
document,
[=](QRect r) { update(std::move(r)); },
[=](QRect r) { _content->update(std::move(r)); },
HistoryView::Sticker::EmojiSize());
_imageStar = QImage();
} else {