Page MenuHomePhabricator

Introduce new JSI call to retrieve backup message for latest siwe backup
ClosedPublic

Authored by marcin on Apr 23 2024, 3:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 23, 3:31 AM
Unknown Object (File)
Sun, Dec 22, 1:01 AM
Unknown Object (File)
Sun, Dec 22, 1:01 AM
Unknown Object (File)
Sun, Dec 22, 1:01 AM
Unknown Object (File)
Sun, Dec 22, 1:01 AM
Unknown Object (File)
Sun, Dec 22, 1:01 AM
Unknown Object (File)
Sun, Dec 22, 1:01 AM
Unknown Object (File)
Fri, Dec 6, 12:27 AM
Subscribers

Details

Summary

This differential introduces new JSI call to fetch latest backup id and associated backup message for SIWE user.

Test Plan
  1. Log in as SIWE user.
  2. In use-backu-client add call to this function after awaiting createNewBackup. Log the result.
  3. Ensure that the result logged is the same as backup message in dynamodb web viewer.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek requested changes to this revision.Apr 24 2024, 2:09 AM
bartek added inline comments.
native/schema/CommCoreModuleSchema.js
163 ↗(On Diff #39392)

The Rust retrieve_latest_siwe_backup_data() calls handle_string_result_as_callback but here you have Promise<void>

This revision now requires changes to proceed.Apr 24 2024, 2:09 AM
  1. Rename msg_backup to siwe_backup_message
  2. Fix JSI type
This revision is now accepted and ready to land.Apr 28 2024, 11:07 PM