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

Fix forwarded from for single message forward.

Closes #3699, closes #3701, closes #3700.
This commit is contained in:
John Preston
2017-07-26 09:05:06 +03:00
parent e1e286aa13
commit 24b3b2a658
5 changed files with 24 additions and 22 deletions

View File

@@ -1212,7 +1212,7 @@ void MediaView::displayPhoto(PhotoData *photo, HistoryItem *item) {
_y = (height() - _h) / 2;
_width = _w;
if (_msgid && item) {
_from = item->peerOriginal();
_from = item->senderOriginal();
} else {
_from = _user;
}
@@ -1366,7 +1366,7 @@ void MediaView::displayDocument(DocumentData *doc, HistoryItem *item) { // empty
_x = (width() - _w) / 2;
_y = (height() - _h) / 2;
if (_msgid && item) {
_from = item->peerOriginal();
_from = item->senderOriginal();
} else {
_from = _user;
}