fix device name federation control

Signed-off-by: girlbossceo <june@girlboss.ceo>
This commit is contained in:
girlbossceo 2023-10-21 12:19:21 -04:00
parent 6e46f56929
commit 05c08c8529

View file

@ -1850,8 +1850,8 @@ pub async fn get_devices_route(
.filter_map(|metadata| {
let device_id_string = metadata.device_id.as_str().to_string();
let device_display_name = match services().globals.allow_device_name_federation() {
true => Some(device_id_string.to_string()),
false => metadata.display_name,
true => metadata.display_name,
false => Some(device_id_string.to_string()),
};
Some(UserDevice {
keys: services()