Bind to Conversation
lazily to prevent style guide errors
This commit is contained in:
parent
560cc4e149
commit
5f8148d3da
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@
|
|||
'use strict';
|
||||
window.Whisper = window.Whisper || {};
|
||||
|
||||
const { Attachment, Conversation, Message } = window.Signal.Types;
|
||||
const { Attachment, Message } = window.Signal.Types;
|
||||
const { upgradeMessageSchema, loadAttachmentData } = window.Signal.Migrations;
|
||||
|
||||
// TODO: Factor out private and group subclasses of Conversation
|
||||
|
@ -675,7 +675,7 @@
|
|||
await collection.fetchConversation(this.id, 1);
|
||||
const lastMessage = collection.at(0);
|
||||
|
||||
const lastMessageUpdate = Conversation.createLastMessageUpdate({
|
||||
const lastMessageUpdate = Signal.Types.Conversation.createLastMessageUpdate({
|
||||
currentLastMessageText: this.get('lastMessage') || null,
|
||||
currentTimestamp: this.get('timestamp') || null,
|
||||
lastMessage: lastMessage ? lastMessage.toJSON() : null,
|
||||
|
|
Loading…
Reference in a new issue