Add p-queue timeouts; fix search crash; improve promise rejection logging

This commit is contained in:
Scott Nonnenberg 2020-09-18 13:40:41 -07:00 committed by Josh Perez
parent 9f9ce91a9c
commit bc3b61db1d
17 changed files with 54 additions and 26 deletions

View file

@ -225,8 +225,9 @@
getPropsForSearchResult() {
const sourceId = this.getContactId();
const from = this.findAndFormatContact(sourceId);
const convo = this.getConversation();
const to = this.findAndFormatContact(convo.get('id'));
const conversationId = this.get('conversationId');
const to = this.findAndFormatContact(conversationId);
return {
from,
@ -235,7 +236,7 @@
isSelected: this.isSelected,
id: this.id,
conversationId: this.get('conversationId'),
conversationId,
sentAt: this.get('sent_at'),
snippet: this.get('snippet'),
};