Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! TW-613: Update icon and title when select…
Browse files Browse the repository at this point in the history
… multi
  • Loading branch information
nqhhdev committed Sep 22, 2023
1 parent 3455e97 commit d4ba7a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions lib/pages/chat_list/chat_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ChatListItem extends StatelessWidget with ChatListItemMixin {
final bool isEnableSelectMode;
final Widget? checkBoxWidget;
final void Function()? onTap;
final void Function()? onLongPress;
final void Function()? onTapAvatar;
final void Function()? onSecondaryTap;

const ChatListItem(
Expand All @@ -31,7 +31,7 @@ class ChatListItem extends StatelessWidget with ChatListItemMixin {
this.isSelectedItem = false,
this.isEnableSelectMode = false,
this.onTap,
this.onLongPress,
this.onTapAvatar,
this.onSecondaryTap,
Key? key,
}) : super(key: key);
Expand Down Expand Up @@ -99,7 +99,6 @@ class ChatListItem extends StatelessWidget with ChatListItemMixin {
: Colors.transparent,
child: InkWell(
onTap: () => clickAction(context),
// onLongPress: onLongPress,
onSecondaryTap: onSecondaryTap,
child: Container(
padding: ChatListItemStyle.paddingBody,
Expand All @@ -111,7 +110,7 @@ class ChatListItem extends StatelessWidget with ChatListItemMixin {
child: Avatar(
mxContent: room.avatar,
name: displayname,
onTap: onLongPress,
onTap: onTapAvatar,
),
),
Expanded(
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/chat_list/space_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class _SpaceViewState extends State<SpaceView> {
if (room != null && !room.isSpace) {
return ChatListItem(
room,
onLongPress: () => _onSpaceChildContextMenu(spaceChild, room),
onTapAvatar: () => _onSpaceChildContextMenu(spaceChild, room),
activeChat: true,
);
}
Expand Down

0 comments on commit d4ba7a5

Please sign in to comment.