hiloop-sdk 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +1 -1
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -388,7 +388,7 @@ export class HiloopClient {
|
|
|
388
388
|
// Decrypt timeline items (session messages)
|
|
389
389
|
if (Array.isArray(result.items)) {
|
|
390
390
|
await Promise.all(result.items.map(async (item) => {
|
|
391
|
-
if (
|
|
391
|
+
if (typeof item.encryptedContent === "string") {
|
|
392
392
|
const plain = await this.crypto.decryptSessionMessage(item.encryptedContent);
|
|
393
393
|
if (plain !== null)
|
|
394
394
|
item.content = plain;
|