Create Mapping table between Mute and Mute-core
Currently, there is a problem with identifiers used for the peers.
- The
Network
Id :
The id used across the network.service.ts
class. This identifier is just called id in the code. However, this id is generated in the Netflux
code. In this part of the project, it is even referenced as NetfluxId
.
We need to change this id and rename it to something that give more information about its goal. This identifier should convey the information that this id corresponds to the id of the peer on the network. Joining a group, sending a message, all these functions would use the identifier. Its name should be networkId
.
- The
MuteCore
Id :
There are two identifier for a peer in the MuteCore
code. id
, and muteCoreId
. There is a confusion between the two as the first identifier doesn't seem to be important to the well being of the app. For this part, the muteCore identifier already exists. We should just get rid of the id
identifier and, consequently, fix what is broken.
After this, we will create a map that links the networkId
of a peer to its muteCoreId
(and inversely). This way, we will be able to use both id in the code more easily.