mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-22 03:48:04 +01:00
Allow primary devices to change names of linked devices
This commit is contained in:
@@ -27,6 +27,14 @@ service Devices {
|
||||
*/
|
||||
rpc RemoveDevice(RemoveDeviceRequest) returns (RemoveDeviceResponse) {}
|
||||
|
||||
/**
|
||||
* Sets the encrypted human-readable name for a specific devices. Primary
|
||||
* devices may change the name of any device associated with their account,
|
||||
* but linked devices may only change their own name. This call will fail with
|
||||
* a status of `NOT_FOUND` if no device was found with the given identifier.
|
||||
* It will also fail with a status of `PERMISSION_DENIED` if a linked device
|
||||
* tries to change the name of any device other than itself.
|
||||
*/
|
||||
rpc SetDeviceName(SetDeviceNameRequest) returns (SetDeviceNameResponse) {}
|
||||
|
||||
/**
|
||||
@@ -95,6 +103,11 @@ message SetDeviceNameRequest {
|
||||
* device.
|
||||
*/
|
||||
bytes name = 1;
|
||||
|
||||
/**
|
||||
* The identifier for the device for which to set a name.
|
||||
*/
|
||||
uint32 id = 2;
|
||||
}
|
||||
|
||||
message SetDeviceNameResponse {}
|
||||
|
||||
@@ -154,7 +154,7 @@ message GetPreKeysRequest {
|
||||
* retrieve pre-keys. If not set, pre-keys are returned for all devices
|
||||
* associated with the targeted account.
|
||||
*/
|
||||
uint32 device_id = 2;
|
||||
optional uint32 device_id = 2;
|
||||
}
|
||||
|
||||
message GetPreKeysAnonymousRequest {
|
||||
|
||||
Reference in New Issue
Block a user