Fixed forwarded date offset

Closes #955
This commit is contained in:
Igor Zhukov 2015-11-11 16:30:23 +03:00
parent fdf47ad112
commit 89146e7ac8

View File

@ -1060,6 +1060,9 @@ angular.module('myApp.services')
} }
apiMessage.date -= serverTimeOffset; apiMessage.date -= serverTimeOffset;
if (apiMessage.fwd_date) {
apiMessage.fwd_date -= serverTimeOffset;
}
apiMessage.toID = toPeerID; apiMessage.toID = toPeerID;
apiMessage.fromID = apiMessage.from_id || toPeerID; apiMessage.fromID = apiMessage.from_id || toPeerID;
if (apiMessage.fwd_from_id) { if (apiMessage.fwd_from_id) {