feat: Add deleteDeviceDisplayName() method to matrix API
This commit is contained in:
parent
2f7c8e81c8
commit
42196795f1
|
|
@ -184,6 +184,17 @@ class MatrixApi extends Api {
|
||||||
return;
|
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
|
/// This API provides credentials for the client to use when initiating
|
||||||
/// calls.
|
/// calls.
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue