COMM: correctly use the ascendingTimestampOrder flag when retrieving new COMM messages. this matches the stock intel site, and prevents gaps occuring when filling in entries after resuming from idle
related to #656 no 2
This commit is contained in:
parent
1501f98f9b
commit
d58ba079b8
@ -106,6 +106,9 @@ window.chat.genPostData = function(isFaction, storageHash, getOlderMsgs) {
|
||||
// Currently this edge case is not handled. Let’s see if this is a
|
||||
// problem in crowded areas.
|
||||
$.extend(data, {minTimestampMs: min});
|
||||
// when requesting with an acutal minimum timestamp, request oldest rather than newest first.
|
||||
// this matches the stock intel site, and ensures no gaps when continuing after an extended idle period
|
||||
if (min > -1) $.extend(data, {ascendingTimestampOrder: true});
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user