From 836761143b1b9f8dd8823e0070b817e5e48cbbf1 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Tue, 4 May 2021 07:55:35 +1000 Subject: [PATCH] Always trigger store query at connection If no new messages are received, the rendering does not change as dupe messages are filtered out. --- web-chat/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-chat/src/App.tsx b/web-chat/src/App.tsx index b6949b28a9..eb958d6c3b 100644 --- a/web-chat/src/App.tsx +++ b/web-chat/src/App.tsx @@ -57,7 +57,7 @@ export default function App() { } else { stateWaku.libp2p.pubsub.on(RelayDefaultTopic, handleNewMessages); - stateWaku.libp2p.peerStore.once( + stateWaku.libp2p.peerStore.on( 'change:protocols', handleProtocolChange.bind({}, stateWaku) );