mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Show replies dialog correctly.
This commit is contained in:
@@ -675,6 +675,13 @@ void UserpicButton::paintEvent(QPaintEvent *e) {
|
||||
photoPosition.y(),
|
||||
width(),
|
||||
_st.photoSize);
|
||||
} else if (showRepliesMessages()) {
|
||||
Ui::EmptyUserpic::PaintRepliesMessages(
|
||||
p,
|
||||
photoPosition.x(),
|
||||
photoPosition.y(),
|
||||
width(),
|
||||
_st.photoSize);
|
||||
} else {
|
||||
if (_a_appearance.animating()) {
|
||||
p.drawPixmapLeft(photoPosition, width(), _oldUserpic);
|
||||
@@ -1032,6 +1039,10 @@ bool UserpicButton::showSavedMessages() const {
|
||||
return _showSavedMessagesOnSelf && _peer && _peer->isSelf();
|
||||
}
|
||||
|
||||
bool UserpicButton::showRepliesMessages() const {
|
||||
return _showSavedMessagesOnSelf && _peer && _peer->isRepliesChat();
|
||||
}
|
||||
|
||||
void UserpicButton::startChangeOverlayAnimation() {
|
||||
auto over = isOver() || isDown();
|
||||
_changeOverlayShown.start(
|
||||
|
Reference in New Issue
Block a user