feat: add remove "displayname" field

This commit is contained in:
Paul Makles
2023-06-11 12:05:08 +01:00
parent 9a412b3e08
commit 0578a05a05
12 changed files with 24 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-quark"
version = "0.6.0"
version = "0.6.1"
edition = "2021"
license = "AGPL-3.0-or-later"

View File

@@ -68,6 +68,7 @@ impl User {
x.background = None;
}
}
FieldsUser::DisplayName => self.display_name = None,
}
}

View File

@@ -337,6 +337,7 @@ impl IntoDocumentPath for FieldsUser {
FieldsUser::ProfileContent => "profile.content",
FieldsUser::StatusPresence => "status.presence",
FieldsUser::StatusText => "status.text",
FieldsUser::DisplayName => "display_name",
})
}
}

View File

@@ -177,6 +177,7 @@ pub enum FieldsUser {
StatusPresence,
ProfileContent,
ProfileBackground,
DisplayName,
}
/// Enumeration providing a hint to the type of user we are handling