[Mobile] Fix comments loading

This commit is contained in:
Julia Radzhabova 2019-09-18 11:27:12 +03:00
parent 3cc0e9b5bd
commit 4f8c494563

View file

@ -734,7 +734,7 @@ define([
time : date.getTime(),
replys : [],
groupName : (groupname && groupname.length>1) ? groupname[1] : null
}
};
if (comment) {
var replies = this.readSDKReplies(data);
if (replies.length) {
@ -821,6 +821,13 @@ define([
return 0;
},
stringUtcToLocalDate: function (date) {
if (typeof date === 'string')
return parseInt(date) + this.timeZoneOffsetInMs;
return 0;
},
addCommentToGroupCollection: function (comment) {
var groupname = comment.groupName;
if (!this.groupCollectionComments[groupname])