mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
youtube and instagram preview display added (instead of messages with only one such link)
This commit is contained in:
@@ -722,7 +722,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) {
|
||||
@@ -1117,7 +1117,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() {
|
||||
|
Reference in New Issue
Block a user