Skip to content

Commit

Permalink
fix: decrypt function for batch history api messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpubnub committed Jul 27, 2023
1 parent 7aa1115 commit 0b27fcc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pubnub/lib/src/dx/batch/batch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ class BatchDx {
keyset: keyset,
core: _core,
params: params,
serialize: (object, [_]) =>
BatchHistoryResult.fromJson(object, cipherKey: keyset?.cipherKey));
serialize: (object, [_]) => BatchHistoryResult.fromJson(object,
cipherKey: keyset?.cipherKey,
decryptFunction: _core.crypto.decrypt));
}

/// Get multiple channels' message count using one call.
Expand Down

0 comments on commit 0b27fcc

Please sign in to comment.