mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-17 15:23:36 +01:00
Enable tsconfig noUncheckedIndexedAccess
This commit is contained in:
@@ -29,7 +29,8 @@ export function getQuoteBodyText({
|
||||
const { body, contact: embeddedContact, poll } = messageAttributes;
|
||||
const embeddedContactName =
|
||||
embeddedContact && embeddedContact.length > 0
|
||||
? EmbeddedContact.getName(embeddedContact[0])
|
||||
? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
EmbeddedContact.getName(embeddedContact[0]!)
|
||||
: '';
|
||||
|
||||
const pollText = poll
|
||||
|
||||
Reference in New Issue
Block a user