mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Reply-in-another-chat by Ctrl+Click on Reply.
This commit is contained in:
parent
32cd2120ac
commit
b9f63f80f1
3 changed files with 7 additions and 11 deletions
|
@ -2399,7 +2399,7 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
|||
const auto quoteOffset = selected.offset;
|
||||
text.replace('&', u"&&"_q);
|
||||
_menu->addAction(text, [=] {
|
||||
if (canSendReply) {
|
||||
if (canSendReply && !base::IsCtrlPressed()) {
|
||||
_widget->replyToMessage({
|
||||
.messageId = itemId,
|
||||
.quote = quote,
|
||||
|
|
|
@ -632,15 +632,11 @@ bool AddReplyToMessageAction(
|
|||
text.replace('&', u"&&"_q);
|
||||
const auto itemId = item->fullId();
|
||||
menu->addAction(text, [=] {
|
||||
if (!item) {
|
||||
return;
|
||||
} else {
|
||||
list->replyToMessageRequestNotify({
|
||||
.messageId = itemId,
|
||||
.quote = quote.text,
|
||||
.quoteOffset = quote.offset,
|
||||
});
|
||||
}
|
||||
list->replyToMessageRequestNotify({
|
||||
.messageId = itemId,
|
||||
.quote = quote.text,
|
||||
.quoteOffset = quote.offset,
|
||||
});
|
||||
}, &st::menuIconReply);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -327,7 +327,7 @@ RepliesWidget::RepliesWidget(
|
|||
const auto canSendReply = _topic
|
||||
? Data::CanSendAnything(_topic)
|
||||
: Data::CanSendAnything(_history->peer);
|
||||
if (_joinGroup || !canSendReply) {
|
||||
if (_joinGroup || !canSendReply || base::IsCtrlPressed()) {
|
||||
Controls::ShowReplyToChatBox(controller->uiShow(), { fullId });
|
||||
} else {
|
||||
replyToMessage(fullId);
|
||||
|
|
Loading…
Add table
Reference in a new issue