fix(android): show password action only for locked channels
This commit is contained in:
@@ -314,16 +314,24 @@ class BridgeChannel {
|
||||
/// Server-side ordering hint.
|
||||
final PlatformInt64 order;
|
||||
|
||||
/// True when the server marks the channel as password-protected.
|
||||
final bool hasPassword;
|
||||
|
||||
const BridgeChannel({
|
||||
required this.id,
|
||||
required this.parent,
|
||||
required this.name,
|
||||
required this.order,
|
||||
required this.hasPassword,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
id.hashCode ^ parent.hashCode ^ name.hashCode ^ order.hashCode;
|
||||
id.hashCode ^
|
||||
parent.hashCode ^
|
||||
name.hashCode ^
|
||||
order.hashCode ^
|
||||
hasPassword.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
@@ -333,7 +341,8 @@ class BridgeChannel {
|
||||
id == other.id &&
|
||||
parent == other.parent &&
|
||||
name == other.name &&
|
||||
order == other.order;
|
||||
order == other.order &&
|
||||
hasPassword == other.hasPassword;
|
||||
}
|
||||
|
||||
/// Client as seen by Dart.
|
||||
|
||||
Reference in New Issue
Block a user