mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
expose some meta data on a log export to show before submitting
This commit is contained in:
parent
c0a03858eb
commit
89139bba30
@ -163,6 +163,24 @@ class IDBLogExport {
|
||||
this._platform = platform;
|
||||
}
|
||||
|
||||
get minTimestamp() {
|
||||
if (!this._items.length) {
|
||||
return 0;
|
||||
}
|
||||
return this._items[0].start;
|
||||
}
|
||||
|
||||
get maxTimestamp() {
|
||||
if (!this._items.length) {
|
||||
return 0;
|
||||
}
|
||||
return this._items[this._items.length - 1].end;
|
||||
}
|
||||
|
||||
get count() {
|
||||
return this._items.length;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {Promise}
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user