mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-02 08:13:37 +01:00
Enable tsconfig noUncheckedIndexedAccess
This commit is contained in:
@@ -105,7 +105,8 @@ const processReceiptBatcher = createWaitBatcher({
|
||||
continue;
|
||||
}
|
||||
// All receipts have the same sentAt, so we can grab it from the first
|
||||
const sentAt = receiptsForMessageSentAt[0].receiptSync.messageSentAt;
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const sentAt = receiptsForMessageSentAt[0]!.receiptSync.messageSentAt;
|
||||
|
||||
const messagesMatchingTimestamp =
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
@@ -374,7 +375,8 @@ function getTargetMessage({
|
||||
`);
|
||||
}
|
||||
|
||||
const message = matchingMessages[0];
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const message = matchingMessages[0]!;
|
||||
return window.MessageCache.register(new MessageModel(message));
|
||||
}
|
||||
const wasDeliveredWithSealedSender = (
|
||||
|
||||
@@ -436,7 +436,8 @@ export async function handlePollVote(
|
||||
);
|
||||
|
||||
if (existingVoteIndex !== -1) {
|
||||
const existingVote = currentVotes[existingVoteIndex];
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const existingVote = currentVotes[existingVoteIndex]!;
|
||||
|
||||
if (newVote.voteCount > existingVote.voteCount) {
|
||||
updatedVotes = [...currentVotes];
|
||||
|
||||
Reference in New Issue
Block a user