mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-13 04:37:11 +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),
|
tr::ayu_UserMessagesMenuText(tr::now),
|
||||||
[=]
|
[=]
|
||||||
{
|
{
|
||||||
if (const auto window = item->history()->session().tryResolveWindow()) {
|
if (const auto controller = item->history()->session().tryResolveWindow()) {
|
||||||
if (const auto mainWidget = window->widget()->sessionController()) {
|
const auto peer = item->history()->peer;
|
||||||
const auto peer = item->history()->peer;
|
const auto key = (peer && !peer->isUser())
|
||||||
const auto key = (peer && !peer->isUser())
|
? item->topic()
|
||||||
? item->topic()
|
? Dialogs::Key{item->topic()}
|
||||||
? Dialogs::Key{item->topic()}
|
: Dialogs::Key{item->history()}
|
||||||
: Dialogs::Key{item->history()}
|
: Dialogs::Key{item->history()};
|
||||||
: Dialogs::Key();
|
controller->searchInChat(key, item->from());
|
||||||
mainWidget->content()->searchMessages(QString(), key, item->from());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
&st::menuIconTTL);
|
&st::menuIconTTL);
|
||||||
|
|
|
@ -2072,9 +2072,9 @@ void VoiceRecordBar::stopRecording(StopType type, bool ttlBeforeHide) {
|
||||||
{
|
{
|
||||||
_sendVoiceRequests.fire({
|
_sendVoiceRequests.fire({
|
||||||
.bytes = _data.content,
|
.bytes = _data.content,
|
||||||
.waveform =_data.waveform,
|
.waveform = _data.waveform,
|
||||||
.duration = _data.duration,
|
.duration = _data.duration,
|
||||||
.options =options,
|
.options = options,
|
||||||
});
|
});
|
||||||
close();
|
close();
|
||||||
});
|
});
|
||||||
|
@ -2164,10 +2164,10 @@ void VoiceRecordBar::requestToSendWithOptions(Api::SendOptions options) {
|
||||||
{
|
{
|
||||||
_sendVoiceRequests.fire({
|
_sendVoiceRequests.fire({
|
||||||
.bytes = _data.content,
|
.bytes = _data.content,
|
||||||
.waveform =_data.waveform,
|
.waveform = _data.waveform,
|
||||||
.duration = _data.duration,
|
.duration = _data.duration,
|
||||||
.options = options,
|
.options = options,
|
||||||
.video = !_data.minithumbs.isNull(),
|
.video = !_data.minithumbs.isNull(),
|
||||||
});
|
});
|
||||||
close();
|
close();
|
||||||
});
|
});
|
||||||
|
|
|
@ -53,6 +53,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "ayu/features/messageshot/message_shot.h"
|
#include "ayu/features/messageshot/message_shot.h"
|
||||||
#include "ayu/utils/telegram_helpers.h"
|
#include "ayu/utils/telegram_helpers.h"
|
||||||
|
|
||||||
|
|
||||||
namespace HistoryView {
|
namespace HistoryView {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ Terminal=false
|
||||||
StartupWMClass=AyuGram
|
StartupWMClass=AyuGram
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=Chat;Network;InstantMessaging;Qt;
|
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;
|
Keywords=tg;chat;im;messaging;messenger;sms;telegram;tdesktop;
|
||||||
Actions=quit;
|
Actions=quit;
|
||||||
DBusActivatable=true
|
DBusActivatable=true
|
||||||
|
|
Loading…
Add table
Reference in a new issue