2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix go to original button in Pinned section.

This commit is contained in:
John Preston
2020-10-30 16:27:53 +03:00
parent 9a2fcdde29
commit b7319c00b9
3 changed files with 4 additions and 3 deletions

View File

@@ -1423,7 +1423,7 @@ void MainWidget::ui_showPeerHistory(
if (const auto activeChat = _controller->activeChatCurrent()) {
if (const auto peer = activeChat.peer()) {
if (way == Way::Forward && peer->id == peerId) {
way = Way::ClearStack;
way = _mainSection ? Way::Backward : Way::ClearStack;
}
}
}