fix(android): use row-only channel joins
This commit is contained in:
@@ -2147,36 +2147,15 @@ class _SnapshotView extends StatelessWidget {
|
||||
),
|
||||
title: Text(ch.name),
|
||||
subtitle: Text('id=${ch.id} parent=${ch.parent}'),
|
||||
trailing: ch.id == currentVoiceChannelId
|
||||
? null
|
||||
: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (ch.hasPassword)
|
||||
IconButton(
|
||||
icon: const Icon(Icons.lock_outline),
|
||||
tooltip: l10n.channelPasswordTitle,
|
||||
onPressed: hasJoinPending
|
||||
? null
|
||||
: () => onJoinChannelWithPassword(ch),
|
||||
),
|
||||
if (!ch.hasPassword)
|
||||
IconButton(
|
||||
icon: Icon(
|
||||
ch.id == pendingVoiceChannelId
|
||||
? Icons.hourglass_top
|
||||
: Icons.login,
|
||||
),
|
||||
tooltip: ch.id == pendingVoiceChannelId
|
||||
? l10n.statusConnecting
|
||||
: l10n.joinChannelAction,
|
||||
onPressed:
|
||||
hasJoinPending || ch.id == pendingVoiceChannelId
|
||||
? null
|
||||
: () => onJoinChannel(ch),
|
||||
),
|
||||
],
|
||||
),
|
||||
trailing: ch.hasPassword && ch.id != currentVoiceChannelId
|
||||
? Tooltip(
|
||||
message: l10n.channelPasswordTitle,
|
||||
child: Icon(
|
||||
Icons.lock_outline,
|
||||
color: theme.colorScheme.onSurfaceVariant,
|
||||
),
|
||||
)
|
||||
: null,
|
||||
selected: ch.id == currentVoiceChannelId,
|
||||
onTap:
|
||||
hasJoinPending ||
|
||||
|
||||
Reference in New Issue
Block a user