More logging in addDeliveryIssue, properly wait in getProfiles
This commit is contained in:
parent
276c153ec4
commit
67d13e9ba8
3 changed files with 9 additions and 5 deletions
|
@ -944,7 +944,7 @@ export async function startApp(): Promise<void> {
|
||||||
`retryPlaceholders/interval: Found ${expired.length} expired items`
|
`retryPlaceholders/interval: Found ${expired.length} expired items`
|
||||||
);
|
);
|
||||||
expired.forEach(item => {
|
expired.forEach(item => {
|
||||||
const { conversationId, senderUuid } = item;
|
const { conversationId, senderUuid, sentAt } = item;
|
||||||
const conversation = window.ConversationController.get(
|
const conversation = window.ConversationController.get(
|
||||||
conversationId
|
conversationId
|
||||||
);
|
);
|
||||||
|
@ -956,6 +956,7 @@ export async function startApp(): Promise<void> {
|
||||||
receivedAt,
|
receivedAt,
|
||||||
receivedAtCounter,
|
receivedAtCounter,
|
||||||
senderUuid,
|
senderUuid,
|
||||||
|
sentAt,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2466,13 +2466,15 @@ export class ConversationModel extends window.Backbone
|
||||||
receivedAt,
|
receivedAt,
|
||||||
receivedAtCounter,
|
receivedAtCounter,
|
||||||
senderUuid,
|
senderUuid,
|
||||||
|
sentAt,
|
||||||
}: {
|
}: {
|
||||||
receivedAt: number;
|
receivedAt: number;
|
||||||
receivedAtCounter: number;
|
receivedAtCounter: number;
|
||||||
senderUuid: string;
|
senderUuid: string;
|
||||||
|
sentAt: number;
|
||||||
}): Promise<void> {
|
}): Promise<void> {
|
||||||
window.log.info(`addDeliveryIssue: adding for ${this.idForLogging()}`, {
|
window.log.info(`addDeliveryIssue: adding for ${this.idForLogging()}`, {
|
||||||
receivedAt,
|
sentAt,
|
||||||
senderUuid,
|
senderUuid,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -4379,9 +4381,9 @@ export class ConversationModel extends window.Backbone
|
||||||
// request all conversation members' keys
|
// request all conversation members' keys
|
||||||
const conversations = (this.getMembers() as unknown) as Array<ConversationModel>;
|
const conversations = (this.getMembers() as unknown) as Array<ConversationModel>;
|
||||||
return Promise.all(
|
return Promise.all(
|
||||||
window._.map(conversations, conversation => {
|
window._.map(conversations, conversation =>
|
||||||
getProfile(conversation.get('uuid'), conversation.get('e164'));
|
getProfile(conversation.get('uuid'), conversation.get('e164'))
|
||||||
})
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -472,6 +472,7 @@ async function requestResend(decryptionError: DecryptionErrorEventData) {
|
||||||
receivedAt: receivedAtDate,
|
receivedAt: receivedAtDate,
|
||||||
receivedAtCounter,
|
receivedAtCounter,
|
||||||
senderUuid,
|
senderUuid,
|
||||||
|
sentAt: timestamp,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue