getProfiles: Better logging; don't let promise propagate
This commit is contained in:
parent
83e0e5d33b
commit
a39e46db5c
7 changed files with 49 additions and 12 deletions
|
@ -2741,7 +2741,11 @@ function getProfilesForConversation(conversationId: string): NoopActionType {
|
|||
throw new Error('getProfilesForConversation: no conversation found');
|
||||
}
|
||||
|
||||
void conversation.getProfiles();
|
||||
drop(
|
||||
conversation.getProfiles().catch(() => {
|
||||
/* nothing to do here; logging already happened */
|
||||
})
|
||||
);
|
||||
|
||||
return {
|
||||
type: 'NOOP',
|
||||
|
@ -2765,7 +2769,11 @@ function conversationStoppedByMissingVerification(payload: {
|
|||
}
|
||||
|
||||
// Intentionally not awaiting here
|
||||
void conversation.getProfiles();
|
||||
drop(
|
||||
conversation.getProfiles().catch(() => {
|
||||
/* nothing to do here; logging already happened */
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
return {
|
||||
|
@ -4274,7 +4282,9 @@ function onConversationOpened(
|
|||
conversation.throttledGetProfiles !== undefined,
|
||||
'Conversation model should be initialized'
|
||||
);
|
||||
await conversation.throttledGetProfiles();
|
||||
await conversation.throttledGetProfiles().catch(() => {
|
||||
/* nothing to do here; logging already happened */
|
||||
});
|
||||
}
|
||||
|
||||
drop(conversation.updateVerified());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue