Skip to content

Commit

Permalink
handle super group profile screen
Browse files Browse the repository at this point in the history
  • Loading branch information
tien-awair committed Jun 16, 2022
1 parent 9c5eb50 commit c7c4883
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ private void initHeaderOnReady(GroupChannel channel) {
}

binding.chvChannelHeader.setRightImageButtonClickListener(v -> {
if (memberIds.size() > 2) {
if (memberIds.size() > 2 || channel.isSuper()) {
Intent intent = new Intent(StringSet.KEY_ACTION_OPEN_GROUP_PROFILE);
intent.putExtra(StringSet.KEY_CHANNEL_URL, channel.getUrl());
requireContext().sendBroadcast(intent);
Expand All @@ -373,7 +373,7 @@ private void initHeaderOnReady(GroupChannel channel) {
}
});
binding.chvChannelHeader.getTitleTextView().setOnClickListener(v -> {
if (memberIds.size() > 2) {
if (memberIds.size() > 2 || channel.isSuper()) {
Intent intent = new Intent(StringSet.KEY_ACTION_OPEN_GROUP_PROFILE);
intent.putExtra(StringSet.KEY_CHANNEL_URL, channel.getUrl());
requireContext().sendBroadcast(intent);
Expand All @@ -384,7 +384,7 @@ private void initHeaderOnReady(GroupChannel channel) {
}
});
binding.chvChannelHeader.getProfileView().setOnClickListener(v -> {
if (memberIds.size() > 2) {
if (memberIds.size() > 2 || channel.isSuper()) {
Intent intent = new Intent(StringSet.KEY_ACTION_OPEN_GROUP_PROFILE);
intent.putExtra(StringSet.KEY_CHANNEL_URL, channel.getUrl());
requireContext().sendBroadcast(intent);
Expand Down

0 comments on commit c7c4883

Please sign in to comment.