fix: resend expiretimerupdate on groupsync too

pull/3281/head
Audric Ackermann 3 months ago
parent ae7ed8d134
commit c18e143b76
No known key found for this signature in database

@ -1204,7 +1204,7 @@ function fetchAllGroupUpdateFailedMessage(
}
const rows = assertGlobalInstanceOrInstance(instance)
.prepare(
`SELECT json FROM ${MESSAGES_TABLE} WHERE conversationId = ? AND JSON_EXTRACT(json, '$.group_update') IS NOT NULL AND errors IS NOT NULL;`
`SELECT json FROM ${MESSAGES_TABLE} WHERE conversationId = ? AND (JSON_EXTRACT(json, '$.group_update') IS NOT NULL OR JSON_EXTRACT(json, '$.expirationTimerUpdate') IS NOT NULL) AND errors IS NOT NULL;`
)
.all(groupPk);

Loading…
Cancel
Save