MessageReceiver: Translate from BigNumber to number for quote id

This commit is contained in:
Scott Nonnenberg 2018-04-12 16:58:21 -07:00
parent 0100e279f5
commit c747c55b37
No known key found for this signature in database
GPG key ID: 5F82280C35134661

View file

@ -1007,6 +1007,10 @@ MessageReceiver.prototype.extend({
promises.push(this.handleAttachment(attachment));
}
if (decrypted.quote && decrypted.quote.id) {
decrypted.quote.id = decrypted.quote.id.toNumber();
}
if (decrypted.quote && decrypted.quote.attachments) {
const { attachments } = decrypted.quote;