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:
@@ -163,14 +163,6 @@ void searchByHashtag(const QString &tag, PeerData *inPeer) {
|
||||
}
|
||||
}
|
||||
|
||||
void openPeerByName(const QString &username, MsgId msgId, const QString &startToken) {
|
||||
if (MainWidget *m = main()) m->openPeerByName(username, msgId, startToken);
|
||||
}
|
||||
|
||||
void joinGroupByHash(const QString &hash) {
|
||||
if (MainWidget *m = main()) m->joinGroupByHash(hash);
|
||||
}
|
||||
|
||||
void showSettings() {
|
||||
if (auto w = wnd()) {
|
||||
w->showSettings();
|
||||
|
Reference in New Issue
Block a user