Fix note to self

pull/1203/head
Mikunj 5 years ago
parent 7b355dae78
commit 6851416d14

@ -1317,8 +1317,7 @@
}); });
if (this.isMe()) { if (this.isMe()) {
await message.markMessageSyncOnly(); return message.sendSyncMessageOnly(chatMessage);
// sending is done in the 'private' case below
} }
const options = {}; const options = {};

@ -1328,7 +1328,7 @@
}); });
const data = const data =
dataMessage instanceof libsession.Message.Outgoing.DataMessage dataMessage instanceof libsession.Messages.Outgoing.DataMessage
? dataMessage.dataProto() ? dataMessage.dataProto()
: dataMessage; : dataMessage;
await this.sendSyncMessage(data); await this.sendSyncMessage(data);
@ -1340,7 +1340,7 @@
return; return;
} }
const syncMessage = new libsession.Message.Outgoing.SentSyncMessage({ const syncMessage = new libsession.Messages.Outgoing.SentSyncMessage({
timestamp: this.get('sent_at'), timestamp: this.get('sent_at'),
identifier: this.id, identifier: this.id,
dataMessage, dataMessage,

Loading…
Cancel
Save