mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix crash in context menu.
Regression was introduced in 4e3c1460f6
.
Fixes #27254.
This commit is contained in:
@@ -2526,7 +2526,7 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
|||||||
? link->copyToClipboardContextItemText()
|
? link->copyToClipboardContextItemText()
|
||||||
: QString();
|
: QString();
|
||||||
|
|
||||||
if (item->isSponsored()) {
|
if (item && item->isSponsored()) {
|
||||||
FillSponsoredMessagesMenu(controller, item->fullId(), _menu);
|
FillSponsoredMessagesMenu(controller, item->fullId(), _menu);
|
||||||
}
|
}
|
||||||
if (isUponSelected > 0) {
|
if (isUponSelected > 0) {
|
||||||
|
Reference in New Issue
Block a user