mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 15:15:13 +00:00
Fix peer list row selecting for forums.
The blobs in group calls are still round for them :(
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user