Fix history ordering

This commit is contained in:
Andras Schmelczer 2025-04-07 20:22:30 +01:00
parent 637aa523c6
commit a86a056888
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -107,7 +107,8 @@ export class HistoryView extends ItemView {
return;
}
const entries = this.client.getHistoryEntries();
// entries are newest first, but we prepend new ones
const entries = this.client.getHistoryEntries().toReversed();
if (this.historyEntryToElement.size === 0 && entries.length > 0) {
// Clear the "No update has happened yet" message