Fix logic to select lastest frame from message base

This commit is contained in:
Deon George 2024-12-09 21:46:39 +11:00
parent 432b57ebde
commit 1ccd025756

View File

@ -1047,9 +1047,9 @@ function Page(debug) {
var msg = mb.frames
.sort(function(a,b) {
if (a.when_imported_time === b.when_imported_time)
return a.number < b.number
return a.number > b.number
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();
if (msg === undefined) {