mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Fixed display of working hours in profiles.
This commit is contained in:
parent
4582e61cfc
commit
99c8edb3eb
1 changed files with 12 additions and 11 deletions
|
@ -1118,7 +1118,7 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupInfo() {
|
||||||
usernameLine.subtext->overrideLinkClickHandler(callback);
|
usernameLine.subtext->overrideLinkClickHandler(callback);
|
||||||
usernameLine.text->setContextMenuHook(hook);
|
usernameLine.text->setContextMenuHook(hook);
|
||||||
usernameLine.subtext->setContextMenuHook(hook);
|
usernameLine.subtext->setContextMenuHook(hook);
|
||||||
if (user) {
|
|
||||||
const auto copyUsername = Ui::CreateChild<Ui::IconButton>(
|
const auto copyUsername = Ui::CreateChild<Ui::IconButton>(
|
||||||
usernameLine.text->parentWidget(),
|
usernameLine.text->parentWidget(),
|
||||||
st::infoProfileLabeledButtonQr);
|
st::infoProfileLabeledButtonQr);
|
||||||
|
@ -1128,7 +1128,8 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupInfo() {
|
||||||
Box(Ui::FillPeerQrBox, user, std::nullopt, nullptr));
|
Box(Ui::FillPeerQrBox, user, std::nullopt, nullptr));
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
|
if (!user->isBot()) {
|
||||||
tracker.track(result->add(
|
tracker.track(result->add(
|
||||||
CreateBirthday(result, controller, user)));
|
CreateBirthday(result, controller, user)));
|
||||||
tracker.track(result->add(CreateWorkingHours(result, user)));
|
tracker.track(result->add(CreateWorkingHours(result, user)));
|
||||||
|
|
Loading…
Add table
Reference in a new issue