2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Move tg:// handlers to a separate module.

Also move joinGroupByHash and stickerSetBox from MainWidget.
This commit is contained in:
John Preston
2018-11-26 15:55:02 +04:00
parent 338129faea
commit 59ecf375b0
30 changed files with 546 additions and 397 deletions

View File

@@ -103,6 +103,14 @@ StickerSetBox::StickerSetBox(QWidget*, const MTPInputStickerSet &set)
: _set(set) {
}
void StickerSetBox::Show(DocumentData *document) {
if (const auto sticker = document ? document->sticker() : nullptr) {
if (sticker->set.type() != mtpc_inputStickerSetEmpty) {
Ui::show(Box<StickerSetBox>(sticker->set));
}
}
}
void StickerSetBox::prepare() {
setTitle(langFactory(lng_contacts_loading));