Fix handling sent messages sans expirationStartTimestamp

This commit is contained in:
lilia 2016-10-03 11:32:32 +09:00
parent 2bbee2d72d
commit 1da44c847b
2 changed files with 8 additions and 4 deletions

View file

@ -38249,9 +38249,11 @@ MessageReceiver.prototype.extend({
ev.data = {
destination : destination,
timestamp : timestamp.toNumber(),
message : message,
expirationStartTimestamp : expirationStartTimestamp.toNumber()
message : message
};
if (expirationStartTimestamp) {
ev.data.expirationStartTimestamp = expirationStartTimestamp.toNumber();
}
this.dispatchEvent(ev);
}.bind(this));
}.bind(this));

View file

@ -178,9 +178,11 @@ MessageReceiver.prototype.extend({
ev.data = {
destination : destination,
timestamp : timestamp.toNumber(),
message : message,
expirationStartTimestamp : expirationStartTimestamp.toNumber()
message : message
};
if (expirationStartTimestamp) {
ev.data.expirationStartTimestamp = expirationStartTimestamp.toNumber();
}
this.dispatchEvent(ev);
}.bind(this));
}.bind(this));