mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
0.10.4: Same chat msg links fixed. Crash fix attempt in ScrollArea.
If the message link is opened in the same chat the ShowWay::Forward should be ignored. There was a possible crash in ~ScrollArea() when one of the bars was already destroyed and the second called ScrollArea::leaveEvent. Now both bars are ChildWidget<>s and will be destroyed in ~QWidget().
This commit is contained in:
@@ -2038,6 +2038,11 @@ void MainWidget::ui_showPeerHistory(quint64 peerId, qint32 showAtMsgId, Ui::Show
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (auto historyPeer = _history->peer()) {
|
||||
if (way == Ui::ShowWay::Forward && historyPeer->id == peerId) {
|
||||
way = Ui::ShowWay::ClearStack;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (back || (way == Ui::ShowWay::ClearStack)) {
|
||||
|
Reference in New Issue
Block a user