2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00
This commit is contained in:
John Preston
2014-11-12 23:30:32 +03:00
23 changed files with 874 additions and 126 deletions

View File

@@ -715,7 +715,7 @@ void MainWidget::itemReplaced(HistoryItem *oldItem, HistoryItem *newItem) {
}
void MainWidget::itemResized(HistoryItem *row) {
if (history.peer() == row->history()->peer && !row->detached()) {
if (!row || history.peer() == row->history()->peer && !row->detached()) {
history.itemResized(row);
}
if (overview) {
@@ -1118,7 +1118,7 @@ void MainWidget::peerAfter(const PeerData *inPeer, MsgId inMsg, PeerData *&outPe
}
PeerData *MainWidget::peer() {
return history.peer();
return overview ? overview->peer() : history.peer();
}
PeerData *MainWidget::activePeer() {