Program: 35551
Project: 35551
Buggy source:
@Override public void onBind(ChatMessage message){
  super.onBind(message);
  HashMap<String,HashMap<String,String>> messageParameters=message.getMessageParameters();
  Spannable messageString=new SpannableString(message.getText());
  Context context=NextcloudTalkApplication.getSharedApplication().getApplicationContext();
  itemView.setSelected(false);
  FlexboxLayout.LayoutParams layoutParams=(FlexboxLayout.LayoutParams)messageTimeView.getLayoutParams();
  layoutParams.setWrapBefore(false);
  if (messageParameters != null && message.getMessageParameters().size() > 0) {
    for (    String key : message.getMessageParameters().keySet()) {
      HashMap<String,String> individualHashMap=message.getMessageParameters().get(key);
      if (individualHashMap.get("String_Node_Str").equals("String_Node_Str")) {
        if (!individualHashMap.get("String_Node_Str").equals(currentUser.getUserId())) {
          messageString=DisplayUtils.searchAndColor(messageText.getText().toString(),messageString,"String_Node_Str" + individualHashMap.get("String_Node_Str"),NextcloudTalkApplication.getSharedApplication().getResources().getColor(R.color.nc_outcoming_text_default));
        }
      }
    }
  }
 else   if (EmoticonUtils.isMessageWithSingleEmoticonOnly(context,message.getText())) {
    messageString.setSpan(new RelativeSizeSpan(2.5f),0,messageString.length(),Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
    layoutParams.setWrapBefore(true);
    messageTimeView.setTextColor(context.getResources().getColor(R.color.warm_grey_four));
    itemView.setSelected(true);
  }
  messageTimeView.setLayoutParams(layoutParams);
  messageText.setText(messageString);
}

Fixed version (ground truth):
@Override public void onBind(ChatMessage message){
  super.onBind(message);
  HashMap<String,HashMap<String,String>> messageParameters=message.getMessageParameters();
  Spannable messageString=new SpannableString(message.getText());
  Context context=NextcloudTalkApplication.getSharedApplication().getApplicationContext();
  itemView.setSelected(false);
  messageTimeView.setTextColor(context.getResources().getColor(R.color.white60));
  FlexboxLayout.LayoutParams layoutParams=(FlexboxLayout.LayoutParams)messageTimeView.getLayoutParams();
  layoutParams.setWrapBefore(false);
  if (messageParameters != null && message.getMessageParameters().size() > 0) {
    for (    String key : message.getMessageParameters().keySet()) {
      HashMap<String,String> individualHashMap=message.getMessageParameters().get(key);
      if (individualHashMap.get("String_Node_Str").equals("String_Node_Str")) {
        if (!individualHashMap.get("String_Node_Str").equals(currentUser.getUserId())) {
          messageString=DisplayUtils.searchAndColor(messageText.getText().toString(),messageString,"String_Node_Str" + individualHashMap.get("String_Node_Str"),NextcloudTalkApplication.getSharedApplication().getResources().getColor(R.color.nc_outcoming_text_default));
        }
      }
    }
  }
 else   if (EmoticonUtils.isMessageWithSingleEmoticonOnly(context,message.getText())) {
    messageString.setSpan(new RelativeSizeSpan(2.5f),0,messageString.length(),Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
    layoutParams.setWrapBefore(true);
    messageTimeView.setTextColor(context.getResources().getColor(R.color.warm_grey_four));
    itemView.setSelected(true);
  }
  messageTimeView.setLayoutParams(layoutParams);
  messageText.setText(messageString);
}