Fix logic to select lastest frame from message base
This commit is contained in:
parent
432b57ebde
commit
1ccd025756
@ -1047,9 +1047,9 @@ function Page(debug) {
|
|||||||
var msg = mb.frames
|
var msg = mb.frames
|
||||||
.sort(function(a,b) {
|
.sort(function(a,b) {
|
||||||
if (a.when_imported_time === b.when_imported_time)
|
if (a.when_imported_time === b.when_imported_time)
|
||||||
return a.number < b.number
|
return a.number > b.number
|
||||||
else
|
else
|
||||||
return (a.when_imported_time < b.when_imported_time); })
|
return (a.when_imported_time > b.when_imported_time); })
|
||||||
.filter(function(item) { return (item.from === 'SYSTEM') && (item.to === page); }).pop();
|
.filter(function(item) { return (item.from === 'SYSTEM') && (item.to === page); }).pop();
|
||||||
|
|
||||||
if (msg === undefined) {
|
if (msg === undefined) {
|
||||||
|
Loading…
Reference in New Issue
Block a user