This differential implements simple utility functions to check if we have session for both content and/or notifs with particular device.
Details
Details
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- marcin/eng-8237
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp | ||
---|---|---|
1477 | We should:
|
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp | ||
---|---|---|
1480 ↗ | (On Diff #42292) | do we need this check if we only care about content? |
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp | ||
---|---|---|
1480 ↗ | (On Diff #42292) | With or without the check for notifs this method will fail if someone forgets to call initializeCryptoAccount. On the other hand if someone calls initializeCryptoAccount it will ensure to initialize both accounts. Therefore removing this check would suggest that we allow the crypto state to be partially which is not true. If we get into state where content is initialized but notifs is not then it is a bug that has to be detected and fixed. |
Comment Actions
Add additional method to check for presence of notifications session for multiple devices with one db query