Fix peer list row selecting for forums.

The blobs in group calls are still round for them :(
This commit is contained in:
John Preston 2022-11-07 19:15:15 +04:00
parent 3b7cdb5748
commit 9a1d9deea5
1 changed files with 7 additions and 1 deletions

View File

@ -847,10 +847,16 @@ void PeerListRow::lazyInitialize(const style::PeerListItem &st) {
void PeerListRow::createCheckbox(
const style::RoundImageCheckbox &st,
Fn<void()> updateCallback) {
const auto generateRadius = [=] {
return (!special() && peer()->isForum())
? ImageRoundRadius::Large
: ImageRoundRadius::Ellipse;
};
_checkbox = std::make_unique<Ui::RoundImageCheckbox>(
st,
std::move(updateCallback),
generatePaintUserpicCallback());
generatePaintUserpicCallback(),
generateRadius);
}
void PeerListRow::setCheckedInternal(bool checked, anim::type animated) {