2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Scheme updated. Dialogs list layout bug fixed.

This commit is contained in:
John Preston
2016-09-13 13:03:21 +03:00
parent 86982da5f7
commit 26ca5fafbb
12 changed files with 712 additions and 347 deletions

View File

@@ -2051,14 +2051,14 @@ void MainWidget::ui_showPeerHistory(quint64 peerId, qint32 showAtMsgId, Ui::Show
}
}
dlgUpdated();
if (back || (way == Ui::ShowWay::ClearStack)) {
dlgUpdated();
_peerInStack = nullptr;
_msgIdInStack = 0;
dlgUpdated();
} else {
saveSectionInStack();
}
dlgUpdated();
PeerData *wasActivePeer = activePeer();
@@ -2197,11 +2197,8 @@ void MainWidget::saveSectionInStack() {
} else if (_wideSection) {
_stack.push_back(std_::make_unique<StackItemSection>(_wideSection->createMemento()));
} else if (_history->peer()) {
dlgUpdated();
_peerInStack = _history->peer();
_msgIdInStack = _history->msgId();
dlgUpdated();
_stack.push_back(std_::make_unique<StackItemHistory>(_peerInStack, _msgIdInStack, _history->replyReturns()));
}
}