chore: Follow up low priority
This commit is contained in:
parent
74c3277eb6
commit
ac24b86a3a
1 changed files with 36 additions and 34 deletions
|
|
@ -578,42 +578,44 @@ class ChatListController extends State<ChatList>
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
PopupMenuItem(
|
if (!room.isLowPriority)
|
||||||
value: ChatContextAction.favorite,
|
PopupMenuItem(
|
||||||
child: Row(
|
value: ChatContextAction.favorite,
|
||||||
mainAxisSize: .min,
|
child: Row(
|
||||||
children: [
|
mainAxisSize: .min,
|
||||||
Icon(
|
children: [
|
||||||
room.isFavourite ? Icons.push_pin : Icons.push_pin_outlined,
|
Icon(
|
||||||
),
|
room.isFavourite ? Icons.push_pin : Icons.push_pin_outlined,
|
||||||
const SizedBox(width: 12),
|
),
|
||||||
Text(
|
const SizedBox(width: 12),
|
||||||
room.isFavourite
|
Text(
|
||||||
? L10n.of(context).unpin
|
room.isFavourite
|
||||||
: L10n.of(context).pin,
|
? L10n.of(context).unpin
|
||||||
),
|
: L10n.of(context).pin,
|
||||||
],
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
if (!room.isFavourite)
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
value: ChatContextAction.lowPriority,
|
value: ChatContextAction.lowPriority,
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: .min,
|
mainAxisSize: .min,
|
||||||
children: [
|
children: [
|
||||||
Icon(
|
Icon(
|
||||||
room.isLowPriority
|
room.isLowPriority
|
||||||
? Icons.low_priority
|
? Icons.low_priority
|
||||||
: Icons.low_priority_outlined,
|
: Icons.low_priority_outlined,
|
||||||
),
|
),
|
||||||
const SizedBox(width: 12),
|
const SizedBox(width: 12),
|
||||||
Text(
|
Text(
|
||||||
room.isLowPriority
|
room.isLowPriority
|
||||||
? L10n.of(context).unsetLowPriority
|
? L10n.of(context).unsetLowPriority
|
||||||
: L10n.of(context).setLowPriority,
|
: L10n.of(context).setLowPriority,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
if (spacesWithPowerLevels.isNotEmpty)
|
if (spacesWithPowerLevels.isNotEmpty)
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
value: ChatContextAction.addToSpace,
|
value: ChatContextAction.addToSpace,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue