mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-09-29 08:25:24 +01:00
Upgrade oxlint
Co-authored-by: Jamie <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
co-authored by
Jamie
parent
35bad4c170
commit
8787bd0f2e
@@ -3740,7 +3740,9 @@ function getUnreadByConversationAndMarkRead(
|
||||
return rows.map(msg => {
|
||||
return {
|
||||
originalReadStatus:
|
||||
msg.readStatus == null ? undefined : (msg.readStatus as ReadStatus),
|
||||
msg.readStatus == null
|
||||
? undefined
|
||||
: (msg.readStatus satisfies ReadStatus),
|
||||
readStatus: ReadStatus.Read,
|
||||
seenStatus: SeenStatus.Seen,
|
||||
id: msg.id,
|
||||
@@ -6552,6 +6554,7 @@ function _getAttachmentDownloadJob(
|
||||
return undefined;
|
||||
}
|
||||
const { attachmentJson, ...fields } = row;
|
||||
// oxlint-disable-next-line typescript/no-unnecessary-type-assertion
|
||||
return parseUnknown(attachmentDownloadJobSchema, {
|
||||
...fields,
|
||||
active: Boolean(row.active),
|
||||
@@ -6671,6 +6674,7 @@ function getNextAttachmentDownloadJobs(
|
||||
try {
|
||||
return allJobs.map(row => {
|
||||
try {
|
||||
// oxlint-disable-next-line typescript/no-unnecessary-type-assertion
|
||||
return parseUnknown(attachmentDownloadJobSchema, {
|
||||
...row,
|
||||
active: Boolean(row.active),
|
||||
@@ -6910,6 +6914,7 @@ function getNextAttachmentBackupJobs(
|
||||
}>(params);
|
||||
return rows
|
||||
.map(row => {
|
||||
// oxlint-disable-next-line typescript/no-unnecessary-type-assertion
|
||||
const parseResult = safeParseUnknown(attachmentBackupJobSchema, {
|
||||
...row,
|
||||
active: Boolean(row.active),
|
||||
|
||||
Reference in New Issue
Block a user