Convert Device.id from long to byte

This commit is contained in:
Chris Eager
2023-10-24 18:58:13 -05:00
committed by Chris Eager
parent 7299067829
commit 6a428b4da9
112 changed files with 1292 additions and 1094 deletions

View File

@@ -55,7 +55,7 @@ message GetDevicesResponse {
/**
* The identifier for the device within an account.
*/
uint64 id = 1;
uint32 id = 1;
/**
* A sequence of bytes that encodes an encrypted human-readable name for
@@ -86,7 +86,7 @@ message RemoveDeviceRequest {
/**
* The identifier for the device to remove from the authenticated account.
*/
uint64 id = 1;
uint32 id = 1;
}
message SetDeviceNameRequest {

View File

@@ -154,7 +154,7 @@ message GetPreKeysRequest {
* retrieve pre-keys. If not set, pre-keys are returned for all devices
* associated with the targeted account.
*/
uint64 device_id = 2;
uint32 device_id = 2;
}
message GetPreKeysAnonymousRequest {
@@ -199,7 +199,7 @@ message GetPreKeysResponse {
/**
* A map of device IDs to pre-key "bundles" for the targeted account.
*/
map<uint64, PreKeyBundle> pre_keys = 2;
map<uint32, PreKeyBundle> pre_keys = 2;
}
message SetOneTimeEcPreKeysRequest {
@@ -276,4 +276,3 @@ message CheckIdentityKeyResponse {
*/
bytes identity_key = 2;
}