1
0
Fork 0
mirror of https://github.com/Blah-IM/blahrs.git synced 2025-05-17 16:01:08 +00:00

fix(types)!: fix missed rename and fix test

This commit is contained in:
oxalica 2024-10-12 14:21:30 -04:00
parent 1ecea448a2
commit 70568f1ffa

View file

@ -357,7 +357,7 @@ pub struct RemoveMemberPayload {
// TODO: Maybe disallow adding other user without consent?
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(tag = "typ", rename_all = "snake_case")]
#[serde(tag = "typ", rename_all = "snake_case", rename = "add_member")]
pub struct AddMemberPayload {
pub room: Id,
#[serde(flatten)]