Compare commits

...

4 Commits

Author SHA1 Message Date
Lorenzo Miglietta
3d01db4c2b Merge branch 'main' into 'main'
remove unneeded string clone

See merge request World/fractal!1592
2024-04-28 19:20:32 +00:00
Anders Jonsson
e2e44ff425 Update Swedish translation 2024-04-28 13:39:08 +00:00
Martin
481d7f9cca Update Slovenian translation 2024-04-27 22:36:49 +00:00
ranfdev
9f23d21cfe remove unneeded string clone 2024-02-05 22:45:39 +01:00
3 changed files with 7857 additions and 2473 deletions

5900
po/sl.po

File diff suppressed because it is too large Load Diff

4423
po/sv.po

File diff suppressed because it is too large Load Diff

View File

@ -154,11 +154,12 @@ impl PublicRoom {
matrix_public_room matrix_public_room
.name .name
.clone() .as_deref()
.or(matrix_public_room .or(matrix_public_room
.canonical_alias .canonical_alias
.as_ref() .as_ref()
.map(ToString::to_string)) .map(|x| x.as_str()))
.unwrap_or_else(|| matrix_public_room.room_id.to_string()) .unwrap_or(matrix_public_room.room_id.as_str())
.to_string()
} }
} }