Skip to content

Commit

Permalink
wip2
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Oct 9, 2024
1 parent 1779604 commit bcb53b4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Telegram/SourceFiles/data/data_chat_filters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ ChatFilter ChatFilter::FromTL(
id,
data.vtitle().v,
data.vicon() ? data.vicon()->data().vname().v : QString(),
data.vcolor_id().v,
flags,
std::move(list),
std::move(pinned),
Expand All @@ -304,6 +305,7 @@ ChatFilter ChatFilter::FromTL(const Tdb::TLchatFolderInfo &filter) {
data.vid().v,
data.vtitle().v,
data.vicon().data().vname().v,
data.vcolor_id().v,
((data.vhas_my_invite_links().v ? Flag::HasMyLinks : Flag())
| (data.vis_shareable().v ? Flag::Chatlist : Flag())),
{},
Expand Down Expand Up @@ -334,6 +336,7 @@ TLchatFolder ChatFilter::tl() const {
(_iconEmoji.isEmpty()
? std::optional<TLchatFolderIcon>()
: tl_chatFolderIcon(tl_string(_iconEmoji))),
tl_int32(_colorIndex.value_or(0)),
tl_bool(_flags & Flag::Chatlist),
tl_vector<TLint53>(pinned),
tl_vector<TLint53>(include),
Expand Down
1 change: 1 addition & 0 deletions Telegram/SourceFiles/intro/intro_phone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ void PhoneWidget::sendPhoneRequest(const QString &phone) {
tl_bool(false), // allow_flash_call
tl_bool(false), // allow_missed_call
tl_bool(false), // is_current_phone_number
tl_bool(false), // has_unknown_phone_number
tl_bool(false), // allow_sms_retriever_api
std::nullopt, // firebase_authentication_settings
tl_vector<TLstring>()) // authentication_tokens
Expand Down
15 changes: 15 additions & 0 deletions Telegram/SourceFiles/window/window_main_menu_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ For license and copyright information please follow this link:
#include "styles/style_menu_icons.h"
#include "styles/style_window.h"

#include "tdb/tdb_sender.h"
#include "tdb/tdb_tl_scheme.h"

namespace Window {
namespace {

using namespace Tdb;

class VersionLabel final
: public Ui::FlatLabel
, public Ui::AbstractTooltipShower {
Expand Down Expand Up @@ -93,6 +98,15 @@ not_null<Ui::SettingsButton*> AddMyChannelsBox(
Fn<void(not_null<DocumentData*>)> done) {
const auto api = box->lifetime().make_state<MTP::Sender>(
&session->mtp());
api->request(TLsearchStickerSet(
tl_string(u"tg_placeholders_android"_q)
)).done([=](const TLstickerSet &result) {
const auto &v = result.data().vstickers().v;
if (v.size() > 1) {
done(session->data().processDocument(v[1]));
}
}).send();
#if 0 // mtp
api->request(MTPmessages_GetStickerSet(
Data::InputStickerSet({
.shortName = u"tg_placeholders_android"_q,
Expand All @@ -107,6 +121,7 @@ not_null<Ui::SettingsButton*> AddMyChannelsBox(
}, [](const MTPDmessages_stickerSetNotModified &) {
});
}).send();
#endif
};
const auto addIcon = [=](not_null<Ui::GenericBox*> box) {
const auto widget = box->addRow(object_ptr<Ui::RpWidget>(box));
Expand Down

0 comments on commit bcb53b4

Please sign in to comment.