Fix glitch in last message shown in conversation list

pull/70/head
sachaaaaa 6 years ago
parent 59b2c75c18
commit 06ece60da8

@ -1039,14 +1039,6 @@
this.lastMessage = message.getNotificationText(); this.lastMessage = message.getNotificationText();
this.lastMessageStatus = 'sending'; this.lastMessageStatus = 'sending';
this.set({
active_at: now,
timestamp: now,
});
await window.Signal.Data.updateConversation(this.id, this.attributes, {
Conversation: Whisper.Conversation,
});
if (this.isPrivate()) { if (this.isPrivate()) {
message.set({ destination }); message.set({ destination });
} }
@ -1056,6 +1048,14 @@
}); });
message.set({ id }); message.set({ id });
this.set({
active_at: now,
timestamp: now,
});
await window.Signal.Data.updateConversation(this.id, this.attributes, {
Conversation: Whisper.Conversation,
});
// We're offline! // We're offline!
if (!textsecure.messaging) { if (!textsecure.messaging) {
const errors = this.contactCollection.map(contact => { const errors = this.contactCollection.map(contact => {

Loading…
Cancel
Save