Fix handling sent messages sans expirationStartTimestamp
This commit is contained in:
parent
2bbee2d72d
commit
1da44c847b
2 changed files with 8 additions and 4 deletions
|
@ -38249,9 +38249,11 @@ MessageReceiver.prototype.extend({
|
||||||
ev.data = {
|
ev.data = {
|
||||||
destination : destination,
|
destination : destination,
|
||||||
timestamp : timestamp.toNumber(),
|
timestamp : timestamp.toNumber(),
|
||||||
message : message,
|
message : message
|
||||||
expirationStartTimestamp : expirationStartTimestamp.toNumber()
|
|
||||||
};
|
};
|
||||||
|
if (expirationStartTimestamp) {
|
||||||
|
ev.data.expirationStartTimestamp = expirationStartTimestamp.toNumber();
|
||||||
|
}
|
||||||
this.dispatchEvent(ev);
|
this.dispatchEvent(ev);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
|
@ -178,9 +178,11 @@ MessageReceiver.prototype.extend({
|
||||||
ev.data = {
|
ev.data = {
|
||||||
destination : destination,
|
destination : destination,
|
||||||
timestamp : timestamp.toNumber(),
|
timestamp : timestamp.toNumber(),
|
||||||
message : message,
|
message : message
|
||||||
expirationStartTimestamp : expirationStartTimestamp.toNumber()
|
|
||||||
};
|
};
|
||||||
|
if (expirationStartTimestamp) {
|
||||||
|
ev.data.expirationStartTimestamp = expirationStartTimestamp.toNumber();
|
||||||
|
}
|
||||||
this.dispatchEvent(ev);
|
this.dispatchEvent(ev);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue