fix(android): prompt from locked channel rows
This commit is contained in:
@@ -2160,20 +2160,21 @@ class _SnapshotView extends StatelessWidget {
|
|||||||
? null
|
? null
|
||||||
: () => onJoinChannelWithPassword(ch),
|
: () => onJoinChannelWithPassword(ch),
|
||||||
),
|
),
|
||||||
IconButton(
|
if (!ch.hasPassword)
|
||||||
icon: Icon(
|
IconButton(
|
||||||
ch.id == pendingVoiceChannelId
|
icon: Icon(
|
||||||
? Icons.hourglass_top
|
ch.id == pendingVoiceChannelId
|
||||||
: Icons.login,
|
? Icons.hourglass_top
|
||||||
|
: Icons.login,
|
||||||
|
),
|
||||||
|
tooltip: ch.id == pendingVoiceChannelId
|
||||||
|
? l10n.statusConnecting
|
||||||
|
: l10n.joinChannelAction,
|
||||||
|
onPressed:
|
||||||
|
hasJoinPending || ch.id == pendingVoiceChannelId
|
||||||
|
? null
|
||||||
|
: () => onJoinChannel(ch),
|
||||||
),
|
),
|
||||||
tooltip: ch.id == pendingVoiceChannelId
|
|
||||||
? l10n.statusConnecting
|
|
||||||
: l10n.joinChannelAction,
|
|
||||||
onPressed:
|
|
||||||
hasJoinPending || ch.id == pendingVoiceChannelId
|
|
||||||
? null
|
|
||||||
: () => onJoinChannel(ch),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
selected: ch.id == currentVoiceChannelId,
|
selected: ch.id == currentVoiceChannelId,
|
||||||
@@ -2182,7 +2183,9 @@ class _SnapshotView extends StatelessWidget {
|
|||||||
!canJoinVoiceChannel ||
|
!canJoinVoiceChannel ||
|
||||||
ch.id == currentVoiceChannelId
|
ch.id == currentVoiceChannelId
|
||||||
? null
|
? null
|
||||||
: () => onJoinChannel(ch),
|
: () => ch.hasPassword
|
||||||
|
? onJoinChannelWithPassword(ch)
|
||||||
|
: onJoinChannel(ch),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
for (final cl in byChannel[ch.id] ?? const <rust.BridgeClient>[])
|
for (final cl in byChannel[ch.id] ?? const <rust.BridgeClient>[])
|
||||||
|
|||||||
Reference in New Issue
Block a user