Skip to content

Commit

Permalink
Merge pull request #7132 from vector-im/bugfix/eric/dismiss-new-chat
Browse files Browse the repository at this point in the history
Adds dismissal to new chat bottom sheet actions
  • Loading branch information
bmarty authored Sep 16, 2022
2 parents 8bfe7b6 + 13b1722 commit a919989
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/7132.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[New Layout] Fixes new chat dialog not getting dismissed after selecting its actions
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,17 @@ class NewChatBottomSheet : VectorBaseBottomSheetDialogFragment<FragmentNewChatBo

private fun initFABs() {
views.startChat.debouncedClicks {
dismiss()
navigator.openCreateDirectRoom(requireActivity())
}

views.createRoom.debouncedClicks {
dismiss()
navigator.openCreateRoom(requireActivity())
}

views.exploreRooms.debouncedClicks {
dismiss()
navigator.openRoomDirectory(requireContext())
}
}
Expand Down

0 comments on commit a919989

Please sign in to comment.