mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
can be cached
This commit is contained in:
parent
f7a07a9e79
commit
764cddcdec
@ -38,6 +38,10 @@ export class PendingEvent {
|
|||||||
this._aborted = false;
|
this._aborted = false;
|
||||||
this._status = SendStatus.Waiting;
|
this._status = SendStatus.Waiting;
|
||||||
this._sendRequest = null;
|
this._sendRequest = null;
|
||||||
|
this._attachmentsTotalBytes = 0;
|
||||||
|
if (this._attachments) {
|
||||||
|
this._attachmentsTotalBytes = Object.values(this._attachments).reduce((t, a) => t + a.size, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get roomId() { return this._data.roomId; }
|
get roomId() { return this._data.roomId; }
|
||||||
@ -89,7 +93,7 @@ export class PendingEvent {
|
|||||||
get error() { return this._error; }
|
get error() { return this._error; }
|
||||||
|
|
||||||
get attachmentsTotalBytes() {
|
get attachmentsTotalBytes() {
|
||||||
return this._attachments && Object.values(this._attachments).reduce((t, a) => t + a.size, 0);
|
return this._attachmentsTotalBytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
get attachmentsSentBytes() {
|
get attachmentsSentBytes() {
|
||||||
|
Loading…
Reference in New Issue
Block a user