fix message sending layout not hiding in deleted conversation
@@ -1406,7 +1406,7 @@ abstract public class MobiComConversationFragment extends Fragment implements Vi
if (channel != null) {
menu.findItem(R.id.dial).setVisible(false);
menu.findItem(R.id.video_call).setVisible(false);
- menu.findItem(R.id.share_conversation).setVisible(Channel.GroupType.SUPPORT_GROUP.getValue().equals(channel.getType()) && alCustomizationSettings.isEnableShareConversation());
+ menu.findItem(R.id.share_conversation).setVisible(Channel.GroupType.SUPPORT_GROUP.getValue().equals(channel.getType()) && alCustomizationSettings.isEnableShareConversation() && !channel.isDeleted());
if (Channel.GroupType.GROUPOFTWO.getValue().equals(channel.getType())) {
String userId = ChannelService.getInstance(getActivity()).getGroupOfTwoReceiverUserId(channel.getKey());
@@ -3142,6 +3142,9 @@ abstract public class MobiComConversationFragment extends Fragment implements Vi
templateAdapter.setMessageList(new HashMap<String, String>());
templateAdapter.notifyDataSetChanged();
}
+ if (getActivity() != null) {
+ getActivity().invalidateOptionsMenu();
+ }
} else {
if ((!ChannelService.getInstance(getActivity()).processIsUserPresentInChannel(channel.getKey())
&& userNotAbleToChatLayout != null
@@ -4152,6 +4155,7 @@ abstract public class MobiComConversationFragment extends Fragment implements Vi
* @param display true to display/ false to not
*/
public void setFeedbackDisplay(boolean display) {
+ if (channel != null && !channel.isDeleted()) {
if (display) {
kmFeedbackView.setVisibility(VISIBLE);
individualMessageSendLayout.setVisibility(View.GONE);
@@ -4187,6 +4191,7 @@ abstract public class MobiComConversationFragment extends Fragment implements Vi
mainDivider.setVisibility(VISIBLE);
}
}
+ }
public void hideAwayMessage(Message message) {
if (message.isTypeOutbox()) {
