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:
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user