Fix getMoreHistory to not return lastKnownHash

pull/1/head
ClemDee 5 years ago
parent 1c226d92b9
commit 287daac085

@ -180,7 +180,7 @@ define([
var txid = Util.uid();
execCommand('LOAD_HISTORY', {
type: type,
count: count,
count: lastKnownHash ? count + 1 : count,
txid: txid,
lastKnownHash: lastKnownHash
}, function (err, obj) {
@ -195,14 +195,16 @@ define([
historyState = false;
return;
}
messages.push({
type: type,
content: {
msg: data.message,
time: data.time,
hash: data.hash
}
});
if (data.hash !== lastKnownHash) {
messages.push({
type: type,
content: {
msg: data.message,
time: data.time,
hash: data.hash
}
});
}
};
};
mailbox.getNotificationsHistory = function (type, count, lastKnownHash, cb) {

Loading…
Cancel
Save