Merge pull request #70 from sachaaaaa/last_message_glitch

Fix glitch in last message shown in conversation list
pull/72/head
sachaaaaa 7 years ago committed by GitHub
commit d7f8679b64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1039,14 +1039,6 @@
this.lastMessage = message.getNotificationText();
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()) {
message.set({ destination });
}
@ -1056,6 +1048,14 @@
});
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!
if (!textsecure.messaging) {
const errors = this.contactCollection.map(contact => {

Loading…
Cancel
Save