2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Fix fast reply from message corner in Replies section.

This commit is contained in:
John Preston
2020-09-30 21:04:08 +03:00
parent e8a58c4c8d
commit 745bbfe268
4 changed files with 16 additions and 2 deletions

View File

@@ -534,8 +534,9 @@ bool MainWidget::shareUrl(
}
void MainWidget::replyToItem(not_null<HistoryItem*> item) {
if (_history->peer() == item->history()->peer
|| _history->peer() == item->history()->peer->migrateTo()) {
if ((!_mainSection || !_mainSection->replyToMessage(item))
&& (_history->peer() == item->history()->peer
|| _history->peer() == item->history()->peer->migrateTo())) {
_history->replyToMessage(item);
}
}