feat: Add deleteDeviceDisplayName() method to matrix API

This commit is contained in:
Christian Kußowski 2025-09-17 10:16:58 +02:00
parent 2f7c8e81c8
commit 42196795f1
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652
1 changed files with 11 additions and 0 deletions

View File

@ -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