fix: use correct icons for chat pin/unpin

Similarly to the read/unread toggle this was also using the wrong icon.

If any selected room is not favourite, then show the pin icon (which
should represent the "mark as favourite" action as it corresponds to the
filled pin shown next to a favourited room. Otherwise show the outline
icon, representing the "unpin" action.
This commit is contained in:
Marcus Hoffmann 2024-02-11 14:08:45 +01:00
parent 3e4bbc4b2f
commit bc68a4faaa

View file

@ -147,8 +147,8 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
tooltip: L10n.of(context)!.toggleFavorite,
icon: Icon(
controller.anySelectedRoomNotFavorite
? Icons.push_pin_outlined
: Icons.push_pin,
? Icons.push_pin
: Icons.push_pin_outlined,
),
onPressed: controller.toggleFavouriteRoom,
),