Add safe check for strange click reports.

This commit is contained in:
John Preston
2025-11-24 17:51:42 +04:00
parent ecfb343690
commit f0a7c547e8
@@ -5072,7 +5072,9 @@ void HistoryWidget::doneShow() {
void HistoryWidget::cornerButtonsShowAtPosition(
Data::MessagePosition position) {
if (position == Data::UnreadMessagePosition) {
if (!_peer) {
return;
} else if (position == Data::UnreadMessagePosition) {
DEBUG_LOG(("JumpToEnd(%1, %2, %3): Show at unread requested."
).arg(_history->peer->name()
).arg(_history->inboxReadTillId().bare