From 0b27fcc8e2fe026f4d2408baa10a73ad9c619f47 Mon Sep 17 00:00:00 2001 From: Mohit Tejani Date: Thu, 27 Jul 2023 12:18:17 +0530 Subject: [PATCH] fix: decrypt function for batch history api messages --- pubnub/lib/src/dx/batch/batch.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pubnub/lib/src/dx/batch/batch.dart b/pubnub/lib/src/dx/batch/batch.dart index d56c42d2..6028791d 100644 --- a/pubnub/lib/src/dx/batch/batch.dart +++ b/pubnub/lib/src/dx/batch/batch.dart @@ -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.