From 5f8148d3dab2d2b42ba9373798f73a4aa448b4e7 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Fri, 13 Apr 2018 14:26:01 -0400 Subject: [PATCH] Bind to `Conversation` lazily to prevent style guide errors --- js/models/conversations.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/models/conversations.js b/js/models/conversations.js index 63c5c92f41d..e2bcc7d60c7 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -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,