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
|
@ -4645,7 +4645,11 @@ export class ConversationModel extends window.Backbone
|
|||
|
||||
onChangeProfileKey(): void {
|
||||
if (isDirectConversation(this.attributes)) {
|
||||
void this.getProfiles();
|
||||
drop(
|
||||
this.getProfiles().catch(() => {
|
||||
/* nothing to do here; logging already happened */
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1048,7 +1048,11 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
|||
switch (error.name) {
|
||||
case 'OutgoingIdentityKeyError': {
|
||||
if (conversation) {
|
||||
promises.push(conversation.getProfiles());
|
||||
promises.push(
|
||||
conversation.getProfiles().catch(() => {
|
||||
/* nothing to do here; logging already happened */
|
||||
})
|
||||
);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue