mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-12 20:27:13 +02:00
fix: smth
This commit is contained in:
parent
9237a08b53
commit
d6145f383d
4 changed files with 14 additions and 15 deletions
|
@ -193,16 +193,14 @@ void AddUserMessagesAction(not_null<Ui::PopupMenu*> menu, HistoryItem *item) {
|
|||
tr::ayu_UserMessagesMenuText(tr::now),
|
||||
[=]
|
||||
{
|
||||
if (const auto window = item->history()->session().tryResolveWindow()) {
|
||||
if (const auto mainWidget = window->widget()->sessionController()) {
|
||||
if (const auto controller = item->history()->session().tryResolveWindow()) {
|
||||
const auto peer = item->history()->peer;
|
||||
const auto key = (peer && !peer->isUser())
|
||||
? item->topic()
|
||||
? Dialogs::Key{item->topic()}
|
||||
: Dialogs::Key{item->history()}
|
||||
: Dialogs::Key();
|
||||
mainWidget->content()->searchMessages(QString(), key, item->from());
|
||||
}
|
||||
: Dialogs::Key{item->history()};
|
||||
controller->searchInChat(key, item->from());
|
||||
}
|
||||
},
|
||||
&st::menuIconTTL);
|
||||
|
|
|
@ -53,6 +53,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "ayu/features/messageshot/message_shot.h"
|
||||
#include "ayu/utils/telegram_helpers.h"
|
||||
|
||||
|
||||
namespace HistoryView {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ Terminal=false
|
|||
StartupWMClass=AyuGram
|
||||
Type=Application
|
||||
Categories=Chat;Network;InstantMessaging;Qt;
|
||||
MimeType=x-scheme-handler/tg;
|
||||
MimeType=x-scheme-handler/tg;x-scheme-handler/tonsite;
|
||||
Keywords=tg;chat;im;messaging;messenger;sms;telegram;tdesktop;
|
||||
Actions=quit;
|
||||
DBusActivatable=true
|
||||
|
|
Loading…
Add table
Reference in a new issue