Finish in-redux conversation lookups, getPropsForSearchResult moved
This commit is contained in:
parent
7fe40dbf83
commit
cbc6c29479
18 changed files with 901 additions and 146 deletions
|
@ -288,27 +288,6 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
|||
};
|
||||
}
|
||||
|
||||
// Other top-level prop-generation
|
||||
getPropsForSearchResult(): WhatIsThis {
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const sourceId = this.getContactId()!;
|
||||
const from = this.findAndFormatContact(sourceId);
|
||||
const conversationId = this.get('conversationId');
|
||||
const to = this.findAndFormatContact(conversationId);
|
||||
|
||||
return {
|
||||
from,
|
||||
to,
|
||||
|
||||
isSelected: this.isSelected,
|
||||
|
||||
id: this.id,
|
||||
conversationId,
|
||||
sentAt: this.get('sent_at'),
|
||||
snippet: this.get('snippet'),
|
||||
};
|
||||
}
|
||||
|
||||
getPropsForMessageDetail(): WhatIsThis {
|
||||
const newIdentity = window.i18n('newIdentity');
|
||||
const OUTGOING_KEY_ERROR = 'OutgoingIdentityKeyError';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue