Skip to content

Commit

Permalink
f Rebase & Update TDLib to 1.8.11 & Fix the build.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Sep 11, 2024
1 parent 796caaa commit 77844a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Telegram/SourceFiles/history/history_item_reply_markup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ using namespace Tdb;
}

[[nodiscard]] RequestPeerQuery RequestPeerQueryFromTL(
const TLDkeyboardButtonTypeRequestUser &data) {
const TLDkeyboardButtonTypeRequestUsers &data) {
const auto restriction = [](const TLbool &is, const TLbool &no) {
using Restriction = RequestPeerQuery::Restriction;
return is.v
Expand All @@ -51,6 +51,7 @@ using namespace Tdb;
: Restriction::Any;
};
return {
.maxQuantity = data.vmax_quantity().v,
.type = RequestPeerQuery::Type::User,
.userIsBot = restriction(
data.vuser_is_bot(),
Expand Down Expand Up @@ -339,7 +340,7 @@ auto HistoryMessageMarkupData::buttonData(const TLkeyboardButton &button)
return ButtonData{ Type::RequestPhone };
}, [&](const TLDkeyboardButtonTypeWebApp &data) {
return ButtonData{ Type::SimpleWebView, data.vurl().v.toUtf8()};
}, [&](const TLDkeyboardButtonTypeRequestUser &data) {
}, [&](const TLDkeyboardButtonTypeRequestUsers &data) {
const auto query = RequestPeerQueryFromTL(data);
return ButtonData{
Type::RequestPeer,
Expand Down

0 comments on commit 77844a7

Please sign in to comment.