Skip to content

Commit

Permalink
Merge pull request #49 from Bilb/fix-expiretimer-resend-group-failed
Browse files Browse the repository at this point in the history
fix: resend expiretimerupdate on groupsync too
  • Loading branch information
Bilb authored Jan 31, 2025
2 parents 5f25814 + c18e143 commit f3cbcf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/node/sql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f3cbcf2

Please sign in to comment.