Skip to content

Commit

Permalink
Always allow persisting records if the message is a system message as…
Browse files Browse the repository at this point in the history
… some system messages use records to pass custom data #1597
  • Loading branch information
JamesChenX committed Jan 5, 2025
1 parent 07a3649 commit 954a2fa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,9 @@ public Mono<Message> saveMessage(
if (messageId == null) {
messageId = node.nextLargeGapId(ServiceType.MESSAGE);
}
if (!persistRecord) {
// Always allow persisting records if the message is a system message
// as some system messages use records to pass custom data.
if (!persistRecord && !isSystemMessage) {
records = null;
}
if (!persistPreMessageId) {
Expand Down

0 comments on commit 954a2fa

Please sign in to comment.