Program: 114313
Project: 114313
Buggy source:
public static String getBodyForUpdateChatNotificationMessage(Context context,QBMessage chatMessage){
  String occupantsIds=chatMessage.getProperty(PROPERTY_OCCUPANTS_IDS);
  String dialogName=chatMessage.getProperty(PROPERTY_ROOM_NAME);
  String photoUrl=chatMessage.getProperty(PROPERTY_ROOM_PHOTO);
  String leave=chatMessage.getProperty(PROPERTY_ROOM_LEAVE);
  String notificationType=chatMessage.getProperty(PROPERTY_NOTIFICATION_TYPE);
  Resources resources=context.getResources();
  String resultMessage=resources.getString(R.string.cht_notification_message);
  QBUser user=AppSession.getSession().getUser();
  boolean ownMessage=user.getId().equals(chatMessage.getSenderId());
  if (notificationType.equals(PROPERTY_TYPE_TO_PRIVATE_CHAT__GROUP_CHAT_CREATE)) {
    resultMessage=ownMessage ? resources.getString(R.string.user_created_room,user.getFullName()) : resources.getString(R.string.user_created_room,ChatUtils.getFullNameById(context,chatMessage.getSenderId()));
    return resultMessage;
  }
  if (!TextUtils.isEmpty(occupantsIds)) {
    String fullNames=ChatUtils.getFullNamesFromOpponentIds(context,occupantsIds);
    resultMessage=ownMessage ? resources.getString(R.string.cht_update_group_added_message,user.getFullName(),fullNames) : resources.getString(R.string.cht_update_group_added_message,ChatUtils.getFullNameById(context,chatMessage.getSenderId()),fullNames);
  }
  if (!TextUtils.isEmpty(dialogName)) {
    resultMessage=ownMessage ? resources.getString(R.string.cht_update_group_name_message,user.getFullName(),dialogName) : resources.getString(R.string.cht_update_group_name_message,ChatUtils.getFullNameById(context,chatMessage.getSenderId()),dialogName);
  }
  if (!TextUtils.isEmpty(photoUrl)) {
    resultMessage=ownMessage ? resources.getString(R.string.cht_update_group_photo_message,user.getFullName()) : resources.getString(R.string.cht_update_group_photo_message,ChatUtils.getFullNameById(context,chatMessage.getSenderId()));
  }
  if (!TextUtils.isEmpty(leave)) {
    resultMessage=ownMessage ? resources.getString(R.string.cht_update_group_leave_message,user.getFullName()) : resources.getString(R.string.cht_update_group_leave_message,ChatUtils.getFullNameById(context,chatMessage.getSenderId()));
  }
  return resultMessage;
}

Fixed version (ground truth):
public static String getBodyForUpdateChatNotificationMessage(Context context,QBMessage chatMessage){
  String occupantsIds=chatMessage.getProperty(PROPERTY_OCCUPANTS_IDS);
  String dialogName=chatMessage.getProperty(PROPERTY_ROOM_NAME);
  String photoUrl=chatMessage.getProperty(PROPERTY_ROOM_PHOTO);
  String leave=chatMessage.getProperty(PROPERTY_ROOM_LEAVE);
  String notificationType=chatMessage.getProperty(PROPERTY_NOTIFICATION_TYPE);
  Resources resources=context.getResources();
  String resultMessage=resources.getString(R.string.cht_notification_message);
  QBUser user=AppSession.getSession().getUser();
  boolean ownMessage=user.getId().equals(chatMessage.getSenderId());
  if (notificationType.equals(PROPERTY_TYPE_TO_GROUP_CHAT__GROUP_CHAT_CREATE)) {
    String fullNames=ChatUtils.getFullNamesFromOpponentIds(context,occupantsIds);
    resultMessage=ownMessage ? resources.getString(R.string.cht_update_group_added_message,user.getFullName(),fullNames) : resources.getString(R.string.cht_update_group_added_message,ChatUtils.getFullNameById(context,chatMessage.getSenderId()),fullNames);
    return resultMessage;
  }
  if (!TextUtils.isEmpty(occupantsIds)) {
    String fullNames=ChatUtils.getFullNamesFromOpponentIds(context,occupantsIds);
    resultMessage=ownMessage ? resources.getString(R.string.cht_update_group_added_message,user.getFullName(),fullNames) : resources.getString(R.string.cht_update_group_added_message,ChatUtils.getFullNameById(context,chatMessage.getSenderId()),fullNames);
  }
  if (!TextUtils.isEmpty(dialogName)) {
    resultMessage=ownMessage ? resources.getString(R.string.cht_update_group_name_message,user.getFullName(),dialogName) : resources.getString(R.string.cht_update_group_name_message,ChatUtils.getFullNameById(context,chatMessage.getSenderId()),dialogName);
  }
  if (!TextUtils.isEmpty(photoUrl)) {
    resultMessage=ownMessage ? resources.getString(R.string.cht_update_group_photo_message,user.getFullName()) : resources.getString(R.string.cht_update_group_photo_message,ChatUtils.getFullNameById(context,chatMessage.getSenderId()));
  }
  if (!TextUtils.isEmpty(leave)) {
    resultMessage=ownMessage ? resources.getString(R.string.cht_update_group_leave_message,user.getFullName()) : resources.getString(R.string.cht_update_group_leave_message,ChatUtils.getFullNameById(context,chatMessage.getSenderId()));
  }
  return resultMessage;
}