Fix peer list row selecting for forums.
The blobs in group calls are still round for them :(
This commit is contained in:
parent
3b7cdb5748
commit
9a1d9deea5
|
@ -847,10 +847,16 @@ void PeerListRow::lazyInitialize(const style::PeerListItem &st) {
|
||||||
void PeerListRow::createCheckbox(
|
void PeerListRow::createCheckbox(
|
||||||
const style::RoundImageCheckbox &st,
|
const style::RoundImageCheckbox &st,
|
||||||
Fn<void()> updateCallback) {
|
Fn<void()> updateCallback) {
|
||||||
|
const auto generateRadius = [=] {
|
||||||
|
return (!special() && peer()->isForum())
|
||||||
|
? ImageRoundRadius::Large
|
||||||
|
: ImageRoundRadius::Ellipse;
|
||||||
|
};
|
||||||
_checkbox = std::make_unique<Ui::RoundImageCheckbox>(
|
_checkbox = std::make_unique<Ui::RoundImageCheckbox>(
|
||||||
st,
|
st,
|
||||||
std::move(updateCallback),
|
std::move(updateCallback),
|
||||||
generatePaintUserpicCallback());
|
generatePaintUserpicCallback(),
|
||||||
|
generateRadius);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PeerListRow::setCheckedInternal(bool checked, anim::type animated) {
|
void PeerListRow::setCheckedInternal(bool checked, anim::type animated) {
|
||||||
|
|
Loading…
Reference in New Issue