Fix incorrect sent timestamps

pull/1209/head
Mikunj 5 years ago
parent 8d11660b13
commit 7665ecacfb

@ -1302,7 +1302,7 @@
const chatMessage = new libsession.Messages.Outgoing.ChatMessage({
body: uploads.body,
identifier: id,
timestamp: Date.now(),
timestamp: now,
attachments: uploads.attachments,
expireTimer,
preview: uploads.preview,
@ -1322,7 +1322,7 @@
const openGroupParams = {
body,
timestamp: Date.now(),
timestamp: now,
group: openGroup,
attachments: uploads.attachments,
preview: uploads.preview,
@ -1821,7 +1821,7 @@
const { chainKey, keyIdx } = senderKey;
const createParams = {
timestamp: Date.now(),
timestamp: now,
groupId: id,
identifier: messageId,
groupSecretKey: secretKey,
@ -1849,7 +1849,7 @@
const updateParams = {
// if we do set an identifier here, be sure to not sync the message two times in msg.handleMessageSentSuccess()
timestamp: Date.now(),
timestamp: now,
groupId: this.id,
name: this.get('name'),
avatar: this.get('avatar'),
@ -1921,7 +1921,7 @@
// FIXME what about public groups?
const quitGroup = {
timestamp: Date.now(),
timestamp: now,
groupId: this.id,
// if we do set an identifier here, be sure to not sync it a second time in handleMessageSentSuccess()
};

@ -1630,6 +1630,7 @@
height: 12px;
display: inline-block;
margin-bottom: 2px;
margin-left: 5px;
}
.module-message-detail__contact__status-icon--sending {

Loading…
Cancel
Save