fix(android): show password action only for locked channels

This commit is contained in:
Edison Jwa
2026-05-20 14:52:34 +09:00
parent 273eaf21c1
commit f8b6485390
8 changed files with 38 additions and 11 deletions
+11 -2
View File
@@ -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.