Skip to content

Commit

Permalink
fix: resend expiretimerupdate on groupsync too
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilb committed Jan 31, 2025
1 parent ae7ed8d commit c18e143
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 c18e143

Please sign in to comment.