2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +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

@@ -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();