|
|
|
@ -4,7 +4,7 @@ import { Quote } from './types';
|
|
|
|
|
import _ from 'lodash';
|
|
|
|
|
import { getConversationController } from '../session/conversations';
|
|
|
|
|
import { ConversationModel } from '../models/conversation';
|
|
|
|
|
import { MessageModel, sliceQuoteText } from '../models/message';
|
|
|
|
|
import { MessageModel } from '../models/message';
|
|
|
|
|
import { Data } from '../../ts/data/data';
|
|
|
|
|
|
|
|
|
|
import { SignalService } from '../protobuf';
|
|
|
|
@ -66,7 +66,8 @@ async function copyFromQuotedMessage(
|
|
|
|
|
|
|
|
|
|
window?.log?.info(`Found quoted message id: ${id}`);
|
|
|
|
|
quoteLocal.referencedMessageNotFound = false;
|
|
|
|
|
quoteLocal.text = sliceQuoteText(found.get('body') || '');
|
|
|
|
|
// NOTE we send the entire body to be consistent with the other platforms
|
|
|
|
|
quoteLocal.text = found.get('body') || '';
|
|
|
|
|
|
|
|
|
|
// no attachments, just save the quote with the body
|
|
|
|
|
if (
|
|
|
|
@ -367,7 +368,7 @@ export async function handleMessageJob(
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// save the message model to the db and it save the messageId generated to our in-memory copy
|
|
|
|
|
// save the message model to the db and then save the messageId generated to our in-memory copy
|
|
|
|
|
const id = await messageModel.commit();
|
|
|
|
|
messageModel.set({ id });
|
|
|
|
|
|
|
|
|
|