fix device name federation control
Signed-off-by: girlbossceo <june@girlboss.ceo>
This commit is contained in:
parent
6e46f56929
commit
05c08c8529
1 changed files with 2 additions and 2 deletions
|
@ -1850,8 +1850,8 @@ pub async fn get_devices_route(
|
||||||
.filter_map(|metadata| {
|
.filter_map(|metadata| {
|
||||||
let device_id_string = metadata.device_id.as_str().to_string();
|
let device_id_string = metadata.device_id.as_str().to_string();
|
||||||
let device_display_name = match services().globals.allow_device_name_federation() {
|
let device_display_name = match services().globals.allow_device_name_federation() {
|
||||||
true => Some(device_id_string.to_string()),
|
true => metadata.display_name,
|
||||||
false => metadata.display_name,
|
false => Some(device_id_string.to_string()),
|
||||||
};
|
};
|
||||||
Some(UserDevice {
|
Some(UserDevice {
|
||||||
keys: services()
|
keys: services()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue