Merge pull request #2147 from famedly/krille/add-delete-device-displayname-method
feat: Add deleteDeviceDisplayName() method to matrix API
This commit is contained in:
commit
7f290f42a2
|
|
@ -184,6 +184,17 @@ class MatrixApi extends Api {
|
|||
return;
|
||||
}
|
||||
|
||||
/// Variant of updateDevice operation that deletes the device displayname by
|
||||
/// setting `display_name: null`.
|
||||
Future<void> deleteDeviceDisplayName(String deviceId) async {
|
||||
await request(
|
||||
RequestType.PUT,
|
||||
'/client/v3/devices/${Uri.encodeComponent(deviceId)}',
|
||||
data: {'display_name': null},
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
/// This API provides credentials for the client to use when initiating
|
||||
/// calls.
|
||||
@override
|
||||
|
|
|
|||
Loading…
Reference in New Issue