Skip to content

Commit

Permalink
Version 5.5.2: Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Sep 9, 2024
1 parent 1ba189e commit f05191e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/boxes/peers/add_bot_to_chat_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ void AddBotToGroupBoxController::addBotToGroup(not_null<PeerData*> chat) {
ChatAdminRightsInfo(rights),
_existingRank,
_promotedSince,
_promotedBy ? chat->owner().user(_promotedBy) : nullptr,
_promotedBy ? chat->owner().user(_promotedBy).get() : nullptr,
EditAdminBotFields{
_token,
_existingRights.value_or(ChatAdminRights()),
Expand Down
6 changes: 3 additions & 3 deletions Telegram/SourceFiles/boxes/peers/edit_participant_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ void EditAdminBox::prepare() {
lt_user,
rpl::single(_by
? Ui::Text::Link(_by->name(), 1)
: TextWithEntities(QString::fromUtf8("\U0001F47B"))),
: TextWithEntities{ QString::fromUtf8("\U0001F47B") }),
lt_date,
rpl::single(TextWithEntities{ langDateTimeFull(parsed) }),
Ui::Text::WithEntities));
Expand Down Expand Up @@ -405,7 +405,7 @@ void EditAdminBox::prepare() {
) | rpl::map(
(_1 & Flag::AddAdmins) != 0
) | rpl::distinct_until_changed(
) | rpl::map([=](bool canAddAdmins) {
) | rpl::map([=](bool canAddAdmins) -> rpl::producer<QString> {
const auto empty = (amCreator() && user()->isSelf());
aboutAddAdminsInner->toggle(!empty, anim::type::instant);
emptyAboutAddAdminsInner->toggle(empty, anim::type::instant);
Expand Down Expand Up @@ -836,7 +836,7 @@ void EditRestrictedBox::prepare() {
lt_user,
rpl::single(_by
? Ui::Text::Link(_by->name(), 1)
: TextWithEntities(QString::fromUtf8("\U0001F47B"))),
: TextWithEntities{ QString::fromUtf8("\U0001F47B") }),
lt_date,
rpl::single(TextWithEntities{ langDateTimeFull(parsed) }),
Ui::Text::WithEntities));
Expand Down

0 comments on commit f05191e

Please sign in to comment.