Don't create models in backups/import
This commit is contained in:
parent
bdbc63ccf0
commit
026e9ef853
6 changed files with 203 additions and 29 deletions
|
@ -1714,6 +1714,14 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
|||
`${storyContext.authorAci})`;
|
||||
}
|
||||
|
||||
// Ensure that quote author's conversation exist
|
||||
if (initialMessage.quote) {
|
||||
window.ConversationController.lookupOrCreate({
|
||||
serviceId: initialMessage.quote.authorAci,
|
||||
reason: 'handleDataMessage.quote.author',
|
||||
});
|
||||
}
|
||||
|
||||
const [quote, storyQuotes] = await Promise.all([
|
||||
initialMessage.quote
|
||||
? copyFromQuotedMessage(initialMessage.quote, conversation.id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue