From 2ea96cc474a4721305cc72812cf78704958fcd6e Mon Sep 17 00:00:00 2001 From: Felicio Mununga Date: Fri, 10 Jun 2022 02:13:05 +0200 Subject: [PATCH] change requestToJoin() --- packages/status-js/src/client/community/community.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/status-js/src/client/community/community.ts b/packages/status-js/src/client/community/community.ts index b01cc6b3..8597f401 100644 --- a/packages/status-js/src/client/community/community.ts +++ b/packages/status-js/src/client/community/community.ts @@ -1,5 +1,5 @@ +import { hexToBytes } from 'ethereum-cryptography/utils' import { PageDirection, waku_message } from 'js-waku' -import { hexToBytes } from 'js-waku/build/main/lib/utils' import difference from 'lodash/difference' import { ChatMessage } from '~/protos/chat-message' @@ -457,7 +457,7 @@ export class Community { const payload = CommunityRequestToJoin.encode({ clock: BigInt(Date.now()), chatId, - communityId: hexToBytes(this.communityPublicKey), + communityId: hexToBytes(this.communityPublicKey.replace(/^0[xX]/, '')), ensName: '', })