mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-16 16:20:50 +01:00
style: appease rustfmt
This commit is contained in:
parent
4c06f329c4
commit
976a73a0e5
2 changed files with 3 additions and 6 deletions
|
@ -1614,11 +1614,7 @@ pub async fn sync_events_v4_route(
|
||||||
rooms.insert(
|
rooms.insert(
|
||||||
room_id.clone(),
|
room_id.clone(),
|
||||||
sync_events::v4::SlidingSyncRoom {
|
sync_events::v4::SlidingSyncRoom {
|
||||||
name: services()
|
name: services().rooms.state_accessor.get_name(room_id)?.or(name),
|
||||||
.rooms
|
|
||||||
.state_accessor
|
|
||||||
.get_name(room_id)?
|
|
||||||
.or(name),
|
|
||||||
avatar: if let Some(avatar) = avatar {
|
avatar: if let Some(avatar) = avatar {
|
||||||
ruma::JsOption::Some(avatar)
|
ruma::JsOption::Some(avatar)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -133,7 +133,8 @@ impl Service {
|
||||||
.ok_or_else(|| Error::bad_database("Event in space state not found"))?;
|
.ok_or_else(|| Error::bad_database("Event in space state not found"))?;
|
||||||
|
|
||||||
if serde_json::from_str::<SpaceChildEventContent>(pdu.content.get())
|
if serde_json::from_str::<SpaceChildEventContent>(pdu.content.get())
|
||||||
.ok().map(|c| c.via)
|
.ok()
|
||||||
|
.map(|c| c.via)
|
||||||
.map_or(true, |v| v.is_empty())
|
.map_or(true, |v| v.is_empty())
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue