1. Replace [[ https://github.com/CommE2E/comm/blob/5ec0ae67944896a15ba1fac258aa14fd17020a4c/keyserver/src/creators/message-creator.js#L429-L431 | this ]] piece of code:
```
if (userDevices.length === 0) {
userDevices = [
{
platform: 'unknown',
deviceToken: 'unknown',
cookieID: 'unknown',
codeVersion: null,
stateVersion: null,
},
];
}
```
2. Add `console.log(notifTexts)` [[ https://github.com/CommE2E/comm/blob/5ec0ae67944896a15ba1fac258aa14fd17020a4c/keyserver/src/push/send.js#L189 | here ]].
3. Make sure you have created at least two users.
4. Test if mentions are rendered correctly accordingly to "thread visibility":
Example thread store with members:
- GENESIS
- group chat 1 (user1, user2)
- public subchannel (user1, user2)
- public subsubchannel (user1)
- secret subchannel (user1)
- secret subsubchannel
- Test community
- subchannel (user1, user2)
- subsubchannel (user1)
- secret channel (user1)
Looking from user2 perspective, those chat mentions should be replaced with the current thread name (chat where we write message -> chat mention):
- GENESIS:
- group chat 1 -> public subchannel | public subsubchannel
- public subchannel -> group chat 1
- Test community:
- subchannel <-> subsubchannel
Those chat mentions should be replaced with default text:
- GENESIS:
- group chat 1 -> secret subchannel | secret subsubchannel
- public subchannel -> secret subchannel | secret subsubchannel
- Test community:
- subchannel -> secret channel