Remove ability to set or read author E164 for new quotes

This commit is contained in:
Evan Hahn 2021-04-05 15:39:38 -05:00 committed by Josh Perez
parent 18ccda83ba
commit 8fe1be8678
6 changed files with 14 additions and 23 deletions

View file

@ -1234,7 +1234,7 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
const thumbnailWithObjectUrl =
!path && !objectUrl
? null
? undefined
: { ...(attachment.thumbnail || {}), objectUrl: path || objectUrl };
return {
@ -2026,19 +2026,6 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
return window.ConversationController.getOrCreate(source, 'private');
}
getQuoteContact(): ConversationModel | undefined | null {
const quote = this.get('quote');
if (!quote) {
return null;
}
const { author } = quote;
if (!author) {
return null;
}
return window.ConversationController.get(author);
}
// Send infrastructure
// One caller today: event handler for the 'Retry Send' entry in triple-dot menu
async retrySend(): Promise<string | null | void | Array<void>> {