Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 470777d

Browse files
richardschneiderdaviddias
authored andcommitted
fix: pubsub message fields (#627)
* fix(pubsub): rename topicCIDs to topicIDs * chore: update interface-ipfs-core
1 parent 8852f69 commit 470777d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"dirty-chai": "^2.0.1",
6666
"eslint-plugin-react": "^7.4.0",
6767
"gulp": "^3.9.1",
68-
"interface-ipfs-core": "~0.34.3",
68+
"interface-ipfs-core": "~0.35.0",
6969
"hapi": "^16.6.2",
7070
"ipfsd-ctl": "~0.24.1",
7171
"pre-commit": "^1.2.2",

Diff for: src/utils/pubsub-message-utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ function deserializeFromBase64 (obj) {
3030
from: bs58.encode(Buffer.from(obj.from, 'base64')).toString(),
3131
seqno: Buffer.from(obj.seqno, 'base64'),
3232
data: Buffer.from(obj.data, 'base64'),
33-
topicCIDs: obj.topicIDs || obj.topicCIDs
33+
topicIDs: obj.topicIDs
3434
}
3535
}
3636

3737
function isPubsubMessage (obj) {
38-
return obj && obj.from && obj.seqno && obj.data && (obj.topicIDs || obj.topicCIDs)
38+
return obj && obj.from && obj.seqno && obj.data && obj.topicIDs
3939
}

0 commit comments

Comments
 (0)