Bigfix: Don't chime when switching networks.

fixes #84
This commit is contained in:
softsimon
2020-06-11 00:11:15 +07:00
parent e0a451eb05
commit 32c3f0c182
3 changed files with 5 additions and 7 deletions

View File

@@ -64,7 +64,7 @@ export class WebsocketService {
blocks.forEach((block: Block) => {
if (block.height > this.stateService.latestBlockHeight) {
this.stateService.latestBlockHeight = block.height;
this.stateService.blocks$.next([block, false]);
this.stateService.blocks$.next([block, false, true]);
}
});
}
@@ -76,7 +76,7 @@ export class WebsocketService {
if (response.block) {
if (response.block.height > this.stateService.latestBlockHeight) {
this.stateService.latestBlockHeight = response.block.height;
this.stateService.blocks$.next([response.block, !!response.txConfirmed]);
this.stateService.blocks$.next([response.block, !!response.txConfirmed, false]);
}
if (response.txConfirmed) {