Merge pull request #1245 from Bilb/fix-timestam-unlink-message

pull/1248/head
Audric Ackermann 5 years ago committed by GitHub
commit 1a27fc43f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1391,10 +1391,11 @@
pubKey pubKey
); );
await window.lokiFileServerAPI.updateOurDeviceMapping(); await window.lokiFileServerAPI.updateOurDeviceMapping();
// TODO: we should ensure the message was sent and retry automatically if not
const device = new libsession.Types.PubKey(pubKey); const device = new libsession.Types.PubKey(pubKey);
const unlinkMessage = new libsession.Messages.Outgoing.DeviceUnlinkMessage( const unlinkMessage = new libsession.Messages.Outgoing.DeviceUnlinkMessage(
pubKey {
timestamp: Date.now(),
}
); );
await libsession.getMessageQueue().send(device, unlinkMessage); await libsession.getMessageQueue().send(device, unlinkMessage);

@ -1382,7 +1382,7 @@
const groupInvitMessage = new libsession.Messages.Outgoing.GroupInvitationMessage( const groupInvitMessage = new libsession.Messages.Outgoing.GroupInvitationMessage(
{ {
identifier: id, identifier: id,
timestamp: Date.now(),
serverName: groupInvitation.name, serverName: groupInvitation.name,
channelId: groupInvitation.channelId, channelId: groupInvitation.channelId,
serverAddress: groupInvitation.address, serverAddress: groupInvitation.address,

@ -458,6 +458,7 @@ MessageSender.prototype = {
if (myDevice !== 1 && myDevice !== '1') { if (myDevice !== 1 && myDevice !== '1') {
const syncReadMessages = new libsession.Messages.Outgoing.SyncReadMessage( const syncReadMessages = new libsession.Messages.Outgoing.SyncReadMessage(
{ {
timestamp: Date.now(),
readMessages: reads, readMessages: reads,
} }
); );

Loading…
Cancel
Save