fix(android): show password action only for locked channels
This commit is contained in:
@@ -864,6 +864,7 @@ fn build_snapshot(con: &Connection) -> Result<ServerSnapshot, ProtocolError> {
|
||||
parent: ChannelId(c.parent.0),
|
||||
name: sanitize(&c.name),
|
||||
order: c.order.0 as i64,
|
||||
has_password: c.has_password.unwrap_or(false),
|
||||
})
|
||||
.collect();
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@ pub struct ChannelInfo {
|
||||
pub name: String,
|
||||
/// Server-side ordering hint.
|
||||
pub order: i64,
|
||||
/// True when the server marks the channel as password-protected.
|
||||
pub has_password: bool,
|
||||
}
|
||||
|
||||
/// One connected client on the server.
|
||||
|
||||
Reference in New Issue
Block a user