Don't set attributes redundantly
By the time we get here, these should have already been set in background.js. // FREEBIE
This commit is contained in:
parent
b0603bc91a
commit
6a5f923cac
1 changed files with 1 additions and 3 deletions
|
@ -128,7 +128,7 @@
|
||||||
// identity key change.
|
// identity key change.
|
||||||
var message = this;
|
var message = this;
|
||||||
var source = message.get('source');
|
var source = message.get('source');
|
||||||
var type = source === textsecure.storage.user.getNumber() ? 'outgoing' : 'incoming';
|
var type = message.get('type');
|
||||||
var timestamp = message.get('sent_at');
|
var timestamp = message.get('sent_at');
|
||||||
var conversationId = message.get('conversationId');
|
var conversationId = message.get('conversationId');
|
||||||
if (dataMessage.group) {
|
if (dataMessage.group) {
|
||||||
|
@ -204,8 +204,6 @@
|
||||||
conversationId : conversation.id,
|
conversationId : conversation.id,
|
||||||
attachments : dataMessage.attachments,
|
attachments : dataMessage.attachments,
|
||||||
decrypted_at : now,
|
decrypted_at : now,
|
||||||
type : type,
|
|
||||||
sent_at : timestamp,
|
|
||||||
flags : dataMessage.flags,
|
flags : dataMessage.flags,
|
||||||
errors : []
|
errors : []
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue