mirror of https://github.com/status-im/js-waku.git
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:
parent
2c72c6d388
commit
836761143b
|
@ -57,7 +57,7 @@ export default function App() {
|
||||||
} else {
|
} else {
|
||||||
stateWaku.libp2p.pubsub.on(RelayDefaultTopic, handleNewMessages);
|
stateWaku.libp2p.pubsub.on(RelayDefaultTopic, handleNewMessages);
|
||||||
|
|
||||||
stateWaku.libp2p.peerStore.once(
|
stateWaku.libp2p.peerStore.on(
|
||||||
'change:protocols',
|
'change:protocols',
|
||||||
handleProtocolChange.bind({}, stateWaku)
|
handleProtocolChange.bind({}, stateWaku)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue