Always trigger store query at connection

If no new messages are received, the rendering does not change
as dupe messages are filtered out.
This commit is contained in:
Franck Royer 2021-05-04 07:55:35 +10:00
parent 2c72c6d388
commit 836761143b
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 1 deletions

View File

@ -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)
);