Things I tested:
1. Restoring primary after logout
2. Restoring primary after deleting app
3. Adding secondary device
4. Checking of logs upload are starting from id 0 (after uploading compaction)
5. Killed the app after restore but before uploading compaction, then opened app again and checked if compaction is uploaded