Skip to content

Commit 6ee0aae

Browse files
authored
Introduce server_url in the Device Sync Request proto (#320)
* repurpose field * bump * BackupOptions -> ArchiveOptions
1 parent 7c06766 commit 6ee0aae

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

proto/device_sync/content.proto

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,10 @@ message HmacKeyUpdate {
4747

4848
// Initiator or new installation id requesting a sync payload send a request
4949
message DeviceSyncRequest {
50-
// Unique identifier for each request
51-
string request_id = 1;
52-
string pin_code = 2 [deprecated = true];
53-
xmtp.device_sync.BackupElementSelection kind = 3 [deprecated = true];
54-
xmtp.device_sync.BackupOptions options = 4;
50+
string pin = 1;
51+
string server_url = 2;
52+
xmtp.device_sync.BackupElementSelection deprecated_kind = 3 [deprecated = true];
53+
xmtp.device_sync.ArchiveOptions options = 4;
5554
}
5655

5756
// Pre-existing installation id capable of supplying a sync payload sends this reply

proto/device_sync/device_sync.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ message BackupMetadataSave {
3030
}
3131

3232
// Backup Options
33-
message BackupOptions {
33+
message ArchiveOptions {
3434
repeated BackupElementSelection elements = 1;
3535
optional int64 start_ns = 2;
3636
optional int64 end_ns = 3;

proto/mls/database/task.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ message Task {
1717
}
1818

1919
message SendSyncArchive {
20-
xmtp.device_sync.BackupOptions options = 1;
20+
xmtp.device_sync.ArchiveOptions options = 1;
2121
bytes sync_group_id = 2;
22-
optional string request_id = 3;
22+
optional string pin = 3;
2323
string server_url = 4;
2424
}

0 commit comments

Comments
 (0)