add: user is_deactivated
This commit is contained in:
parent
9ccbc69405
commit
63d3c2350d
13 changed files with 243 additions and 30 deletions
|
@ -89,6 +89,10 @@ pub struct User {
|
|||
/// IDs of channels the user has muted.
|
||||
#[serde(default)]
|
||||
pub channel_mutes: Vec<usize>,
|
||||
/// If the user is deactivated. Deactivated users act almost like deleted
|
||||
/// users, but their data is not wiped.
|
||||
#[serde(default)]
|
||||
pub is_deactivated: bool,
|
||||
}
|
||||
|
||||
pub type UserConnections =
|
||||
|
@ -391,6 +395,7 @@ impl User {
|
|||
seller_data: StripeSellerData::default(),
|
||||
ban_reason: String::new(),
|
||||
channel_mutes: Vec::new(),
|
||||
is_deactivated: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue