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

Commit 5198b96

Browse files
pubsub:handle topicCIDs and topicIDs
1 parent 2bbc1af commit 5198b96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pubsub-message-utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ class PubsubMessageUtils {
3434
const senderId = Base58.encode(obj.from)
3535
const payload = Base64.decode(obj.data)
3636
const seqno = Base64.decode(obj.seqno)
37-
const topics = obj.topicIDs
37+
const topics = obj.topicIDs || obj.topicCIDs
3838

3939
return PubsubMessageUtils.create(senderId, payload, seqno, topics)
4040
}
4141

4242
static _isPubsubMessage (obj) {
43-
return obj && obj.from && obj.seqno && obj.data && obj.topicIDs
43+
return obj && obj.from && obj.seqno && obj.data && (obj.topicIDs || obj.topicCIDs)
4444
}
4545
}
4646

0 commit comments

Comments
 (0)