This issue is a followup to raiden-network/raiden#2661.
After a discussion with @CosminNechifor and some search through the WebUI code, I confirmed through testing that the issue Cosmin actually experienced was due to the following method:
|
private checkForNewChannels(oldChannels: Channel[], newChannels: Channel[]) { |
The new channel checker implementation will work only if the oldChannels.length > 0. This means that it will never show a notification there are no old channels.
The most probable reason this check is there, is to avoid spamming the user with new channel notification the first time they open the WebUI and the channel cache is loaded.
The unfortunate side effect of this is that if you have no channels and you open your first channel, no notification will be shown.
This issue is a followup to raiden-network/raiden#2661.
After a discussion with @CosminNechifor and some search through the WebUI code, I confirmed through testing that the issue Cosmin actually experienced was due to the following method:
webui/src/app/services/channel-polling.service.ts
Line 60 in 6fa782e
The new channel checker implementation will work only if the
oldChannels.length > 0. This means that it will never show a notification there are no old channels.The most probable reason this check is there, is to avoid spamming the user with new channel notification the first time they open the WebUI and the channel cache is loaded.
The unfortunate side effect of this is that if you have no channels and you open your first channel, no notification will be shown.