Show peer-s microphone mute state on userpic.

This commit is contained in:
John Preston
2020-08-13 19:48:20 +04:00
parent 8af40c22a4
commit 465c661c45
7 changed files with 48 additions and 6 deletions
@@ -30,6 +30,7 @@ public:
void setVisible(bool visible);
void setGeometry(int x, int y, int size);
void setMuteLayout(QPoint position, int size, int stroke);
[[nodiscard]] rpl::lifetime &lifetime() {
return _content.lifetime();
@@ -55,6 +56,9 @@ private:
Ui::Animations::Simple _mutedAnimation;
QPixmap _userPhoto;
PhotoId _userPhotoId = 0;
QPoint _mutePosition;
int _muteSize = 0;
int _muteStroke = 0;
bool _userPhotoFull = false;
bool _muted = false;