Skip to content

Commit

Permalink
f Migrated SetupChannelBox from MTP to TDLib.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jun 26, 2024
1 parent b8f71ea commit 7286468
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions Telegram/SourceFiles/boxes/add_contact_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,10 +553,7 @@ GroupInfoBox::GroupInfoBox(
const QString &title,
Fn<void(not_null<ChannelData*>)> channelDone)
: _navigation(navigation)
#if 0 // goodToRemove
, _api(&_navigation->session().mtp())
#endif
, _api(&_navigation->session().sender())
, _type(type)
, _initialTitle(title)
, _done(WrapPeerDoneFromChannelDone(std::move(channelDone))) {
Expand Down
4 changes: 0 additions & 4 deletions Telegram/SourceFiles/boxes/add_contact_box.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ For license and copyright information please follow this link:
#include "ui/layers/box_content.h"
#include "base/timer.h"
#include "mtproto/sender.h"
#include "tdb/tdb_sender.h"

namespace Tdb {
class TLcheckChatUsernameResult;
Expand Down Expand Up @@ -148,10 +147,7 @@ class GroupInfoBox : public Ui::BoxContent {
[[nodiscard]] TimeId ttlPeriod() const;

const not_null<Window::SessionNavigation*> _navigation;
#if 0 // goodToRemove
MTP::Sender _api;
#endif
Tdb::Sender _api;

Type _type = Type::Group;
QString _initialTitle;
Expand Down

0 comments on commit 7286468

Please sign in to comment.